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 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(

View file

@ -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`

View file

@ -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`

View file

@ -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.',

View file

@ -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.',

View file

@ -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`

View file

@ -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`

View file

@ -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'],

View file

@ -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`

View file

@ -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.',

View file

@ -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: {

View file

@ -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"]',