From 7e32cb50e2c595276ad62877ab7c11ddfd97ae9f Mon Sep 17 00:00:00 2001 From: Bsian Date: Thu, 31 Oct 2019 23:47:36 +0000 Subject: [PATCH] Fixed help loader --- src/commands/cwg_data.ts | 2 +- src/commands/cwg_delete.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/cwg_data.ts b/src/commands/cwg_data.ts index 8d01123..bb8f001 100644 --- a/src/commands/cwg_data.ts +++ b/src/commands/cwg_data.ts @@ -17,7 +17,7 @@ export default class CWG_Data extends Command { public async run(message: Message, args: string[]) { try { - if (!args[0]) return this.client.commands.get('help').run(message, [this.name]); + if (!args[0]) return this.client.commands.get('help').run(message, ['cwg', this.name]); const domain = await this.client.db.Domain.findOne({ $or: [{ domain: args[0] }, { port: Number(args[0]) || '' }] }); if (!domain) return message.channel.createMessage(`***${this.client.stores.emojis.error} The domain or port you provided could not be found.***`); const embed = new RichEmbed(); diff --git a/src/commands/cwg_delete.ts b/src/commands/cwg_delete.ts index eb6ff0e..aa51456 100644 --- a/src/commands/cwg_delete.ts +++ b/src/commands/cwg_delete.ts @@ -17,7 +17,7 @@ export default class CWG_Data extends Command { public async run(message: Message, args: string[]) { try { - if (!args[0]) return this.client.commands.get('help').run(message, [this.name]); + if (!args[0]) return this.client.commands.get('help').run(message, ['cwg', this.name]); const domain = await this.client.db.Domain.findOne({ $or: [{ domain: args[0] }, { port: Number(args[0]) || '' }] }); if (!domain) return message.channel.createMessage(`***${this.client.stores.emojis.error} The domain or port you provided could not be found.***`); const edit = await message.channel.createMessage(`***${this.client.stores.emojis.loading} Deleting domain...***`);