diff --git a/Main.js b/Main.js index af68f5d..2fc9e04 100644 --- a/Main.js +++ b/Main.js @@ -23,7 +23,7 @@ const { timestampAt } = require("./resources/debug"); const requireAll = require("require-all"); 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 .registerGroups([ @@ -35,6 +35,7 @@ client.registry "profile", "owner" ]) + .registerDefaultTypes() .registerCommandsIn(join(__dirname, 'cmds')); client.setProvider( diff --git a/cmds/owner/disable.js b/cmds/owner/disable.js index 4d3f441..495a74a 100644 --- a/cmds/owner/disable.js +++ b/cmds/owner/disable.js @@ -6,7 +6,7 @@ module.exports = class DisableCommandCommand extends Command { super(client, { name: 'disable', aliases: ['disable-command', 'cmd-off', 'command-off'], - group: 'commands', + group: 'owner', memberName: 'disable', description: 'Disables a command or command group.', details: oneLine` diff --git a/cmds/owner/enable.js b/cmds/owner/enable.js index 8c97291..3a4f6e3 100644 --- a/cmds/owner/enable.js +++ b/cmds/owner/enable.js @@ -6,7 +6,7 @@ module.exports = class EnableCommandCommand extends Command { super(client, { name: 'enable', aliases: ['enable-command', 'cmd-on', 'command-on'], - group: 'commands', + group: 'owner', memberName: 'enable', description: 'Enables a command or command group.', details: oneLine` diff --git a/cmds/owner/eval.js b/cmds/owner/eval.js index 0789d41..895bc94 100644 --- a/cmds/owner/eval.js +++ b/cmds/owner/eval.js @@ -11,7 +11,7 @@ module.exports = class EvalCommand extends Command { constructor(client) { super(client, { name: 'eval', - group: 'util', + group: 'owner', memberName: 'eval', description: 'Executes JavaScript code.', details: 'Only the bot owner(s) may use this command.', diff --git a/cmds/owner/groups.js b/cmds/owner/groups.js index fe7f573..69c574d 100644 --- a/cmds/owner/groups.js +++ b/cmds/owner/groups.js @@ -6,7 +6,7 @@ module.exports = class ListGroupsCommand extends Command { super(client, { name: 'groups', aliases: ['list-groups', 'show-groups'], - group: 'commands', + group: 'owner', memberName: 'groups', description: 'Lists all command groups.', details: 'Only administrators may use this command.', diff --git a/cmds/owner/load.js b/cmds/owner/load.js index 56f768a..a47bb19 100644 --- a/cmds/owner/load.js +++ b/cmds/owner/load.js @@ -7,7 +7,7 @@ module.exports = class LoadCommandCommand extends Command { super(client, { name: 'load', aliases: ['load-command'], - group: 'commands', + group: 'owner', memberName: 'load', description: 'Loads a new command.', details: oneLine` diff --git a/cmds/owner/reload.js b/cmds/owner/reload.js index 8efb63b..91cdefe 100644 --- a/cmds/owner/reload.js +++ b/cmds/owner/reload.js @@ -6,7 +6,7 @@ module.exports = class ReloadCommandCommand extends Command { super(client, { name: 'reload', aliases: ['reload-command'], - group: 'commands', + group: 'owner', memberName: 'reload', description: 'Reloads a command or command group.', details: oneLine` diff --git a/cmds/owner/unknown-command.js b/cmds/owner/unknown-command.js index 0cf4e5b..84a9696 100644 --- a/cmds/owner/unknown-command.js +++ b/cmds/owner/unknown-command.js @@ -6,7 +6,7 @@ module.exports = class UnknownCommandCommand extends Command { constructor(client) { super(client, { name: 'unknown-command', - group: 'util', + group: 'owner', memberName: 'unknown-command', description: 'Displays help information for when an unknown command is used.', examples: ['unknown-command kickeverybodyever'], diff --git a/cmds/owner/unload.js b/cmds/owner/unload.js index b4fe9de..7a23835 100644 --- a/cmds/owner/unload.js +++ b/cmds/owner/unload.js @@ -6,7 +6,7 @@ module.exports = class UnloadCommandCommand extends Command { super(client, { name: 'unload', aliases: ['unload-command'], - group: 'commands', + group: 'owner', memberName: 'unload', description: 'Unloads a command.', details: oneLine` diff --git a/cmds/utility/help.js b/cmds/utility/help.js index fbaef08..2ce22eb 100644 --- a/cmds/utility/help.js +++ b/cmds/utility/help.js @@ -6,7 +6,7 @@ module.exports = class HelpCommand extends Command { constructor(client) { super(client, { name: 'help', - group: 'util', + group: 'utility', memberName: 'help', aliases: ['commands'], description: 'Displays a list of available commands, or detailed information for a specified command.', diff --git a/cmds/utility/ping.js b/cmds/utility/ping.js index 60ba767..e051fdb 100644 --- a/cmds/utility/ping.js +++ b/cmds/utility/ping.js @@ -5,7 +5,7 @@ module.exports = class PingCommand extends Command { constructor(client) { super(client, { name: 'ping', - group: 'util', + group: 'utility', memberName: 'ping', description: 'Checks the bot\'s ping to the Discord server.', throttling: { diff --git a/cmds/utility/prefix.js b/cmds/utility/prefix.js index 4f0bc16..a399154 100644 --- a/cmds/utility/prefix.js +++ b/cmds/utility/prefix.js @@ -5,7 +5,7 @@ module.exports = class PrefixCommand extends Command { constructor(client) { super(client, { name: 'prefix', - group: 'util', + group: 'utility', memberName: 'prefix', description: 'Shows or sets the command prefix.', format: '[prefix/"default"/"none"]',