From 36afa4f2ed102743ff4dfb7e3b18cc573b64b67e Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 29 Oct 2019 01:13:14 +0000 Subject: [PATCH] Added usage --- src/commands/cwg.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/cwg.ts b/src/commands/cwg.ts index e4ddb9c..86121c0 100644 --- a/src/commands/cwg.ts +++ b/src/commands/cwg.ts @@ -12,7 +12,7 @@ export default class CWG extends Command { super(client); this.name = 'cwg'; this.description = 'Manages aspects for the CWG.'; - this.usage = `${this.client.config.prefix}cwg create [User ID/Username] [Domain] [Port] `; + this.usage = `${this.client.config.prefix}cwg create [User ID/Username] [Domain] [Port] \n${this.client.config.prefix}cwg data [Domain/Port]`; this.permissions = { roles: ['525441307037007902'] }; this.enabled = true; } @@ -85,7 +85,7 @@ export default class CWG extends Command { } } else if (args[0] === 'data') { if (!args[1]) return this.client.commands.get('help').run(message, [this.name]); - const domain = await this.client.db.Domain.findOne({ $or: [{ domain: args[1] }, { port: Number(args[1]) ? Number(args[1]) : '' }] }); + const domain = await this.client.db.Domain.findOne({ $or: [{ domain: args[1] }, { port: Number(args[1]) || '' }] }); 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(); embed.setTitle('Domain Information');