i think it's good

This commit is contained in:
Neko Life 2021-06-28 18:12:39 +09:00
parent 013860d988
commit bcc9793a15
12 changed files with 13 additions and 12 deletions

View file

@ -23,7 +23,7 @@ const { timestampAt } = require("./resources/debug");
const requireAll = require("require-all"); const requireAll = require("require-all");
const lgr = requireAll({ dirname: join(__dirname, "resources/eventsLogger"), recursive: true }); const lgr = requireAll({ dirname: join(__dirname, "resources/eventsLogger"), recursive: true });
client.functions = requireAll({ dirname: join(__dirname, "../../resources"), recursive: true }); client.functions = requireAll({ dirname: join(__dirname, "resources"), recursive: true });
client.registry client.registry
.registerGroups([ .registerGroups([
@ -35,6 +35,7 @@ client.registry
"profile", "profile",
"owner" "owner"
]) ])
.registerDefaultTypes()
.registerCommandsIn(join(__dirname, 'cmds')); .registerCommandsIn(join(__dirname, 'cmds'));
client.setProvider( client.setProvider(

View file

@ -6,7 +6,7 @@ module.exports = class DisableCommandCommand extends Command {
super(client, { super(client, {
name: 'disable', name: 'disable',
aliases: ['disable-command', 'cmd-off', 'command-off'], aliases: ['disable-command', 'cmd-off', 'command-off'],
group: 'commands', group: 'owner',
memberName: 'disable', memberName: 'disable',
description: 'Disables a command or command group.', description: 'Disables a command or command group.',
details: oneLine` details: oneLine`

View file

@ -6,7 +6,7 @@ module.exports = class EnableCommandCommand extends Command {
super(client, { super(client, {
name: 'enable', name: 'enable',
aliases: ['enable-command', 'cmd-on', 'command-on'], aliases: ['enable-command', 'cmd-on', 'command-on'],
group: 'commands', group: 'owner',
memberName: 'enable', memberName: 'enable',
description: 'Enables a command or command group.', description: 'Enables a command or command group.',
details: oneLine` details: oneLine`

View file

@ -11,7 +11,7 @@ module.exports = class EvalCommand extends Command {
constructor(client) { constructor(client) {
super(client, { super(client, {
name: 'eval', name: 'eval',
group: 'util', group: 'owner',
memberName: 'eval', memberName: 'eval',
description: 'Executes JavaScript code.', description: 'Executes JavaScript code.',
details: 'Only the bot owner(s) may use this command.', details: 'Only the bot owner(s) may use this command.',

View file

@ -6,7 +6,7 @@ module.exports = class ListGroupsCommand extends Command {
super(client, { super(client, {
name: 'groups', name: 'groups',
aliases: ['list-groups', 'show-groups'], aliases: ['list-groups', 'show-groups'],
group: 'commands', group: 'owner',
memberName: 'groups', memberName: 'groups',
description: 'Lists all command groups.', description: 'Lists all command groups.',
details: 'Only administrators may use this command.', details: 'Only administrators may use this command.',

View file

@ -7,7 +7,7 @@ module.exports = class LoadCommandCommand extends Command {
super(client, { super(client, {
name: 'load', name: 'load',
aliases: ['load-command'], aliases: ['load-command'],
group: 'commands', group: 'owner',
memberName: 'load', memberName: 'load',
description: 'Loads a new command.', description: 'Loads a new command.',
details: oneLine` details: oneLine`

View file

@ -6,7 +6,7 @@ module.exports = class ReloadCommandCommand extends Command {
super(client, { super(client, {
name: 'reload', name: 'reload',
aliases: ['reload-command'], aliases: ['reload-command'],
group: 'commands', group: 'owner',
memberName: 'reload', memberName: 'reload',
description: 'Reloads a command or command group.', description: 'Reloads a command or command group.',
details: oneLine` details: oneLine`

View file

@ -6,7 +6,7 @@ module.exports = class UnknownCommandCommand extends Command {
constructor(client) { constructor(client) {
super(client, { super(client, {
name: 'unknown-command', name: 'unknown-command',
group: 'util', group: 'owner',
memberName: 'unknown-command', memberName: 'unknown-command',
description: 'Displays help information for when an unknown command is used.', description: 'Displays help information for when an unknown command is used.',
examples: ['unknown-command kickeverybodyever'], examples: ['unknown-command kickeverybodyever'],

View file

@ -6,7 +6,7 @@ module.exports = class UnloadCommandCommand extends Command {
super(client, { super(client, {
name: 'unload', name: 'unload',
aliases: ['unload-command'], aliases: ['unload-command'],
group: 'commands', group: 'owner',
memberName: 'unload', memberName: 'unload',
description: 'Unloads a command.', description: 'Unloads a command.',
details: oneLine` details: oneLine`

View file

@ -6,7 +6,7 @@ module.exports = class HelpCommand extends Command {
constructor(client) { constructor(client) {
super(client, { super(client, {
name: 'help', name: 'help',
group: 'util', group: 'utility',
memberName: 'help', memberName: 'help',
aliases: ['commands'], aliases: ['commands'],
description: 'Displays a list of available commands, or detailed information for a specified command.', description: 'Displays a list of available commands, or detailed information for a specified command.',

View file

@ -5,7 +5,7 @@ module.exports = class PingCommand extends Command {
constructor(client) { constructor(client) {
super(client, { super(client, {
name: 'ping', name: 'ping',
group: 'util', group: 'utility',
memberName: 'ping', memberName: 'ping',
description: 'Checks the bot\'s ping to the Discord server.', description: 'Checks the bot\'s ping to the Discord server.',
throttling: { throttling: {

View file

@ -5,7 +5,7 @@ module.exports = class PrefixCommand extends Command {
constructor(client) { constructor(client) {
super(client, { super(client, {
name: 'prefix', name: 'prefix',
group: 'util', group: 'utility',
memberName: 'prefix', memberName: 'prefix',
description: 'Shows or sets the command prefix.', description: 'Shows or sets the command prefix.',
format: '[prefix/"default"/"none"]', format: '[prefix/"default"/"none"]',