From e3d6c108d7f2a65d57043713f258976116626639 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 30 Mar 2020 16:48:59 +0100 Subject: [PATCH] Bug fixes --- src/commands/cloudflare.ts | 1 + src/commands/cwg_create.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/cloudflare.ts b/src/commands/cloudflare.ts index 9be5417..6f0c7ce 100644 --- a/src/commands/cloudflare.ts +++ b/src/commands/cloudflare.ts @@ -17,6 +17,7 @@ export default class Cloudflare extends Command { public async run(message: Message, args: string[]) { try { + if (!args.length) return this.client.commands.get('help').run(message, ['cloudflare']); const msg = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Locating entry...***`); const { data } = await axios({ method: 'get', diff --git a/src/commands/cwg_create.ts b/src/commands/cwg_create.ts index 33d009f..5855157 100644 --- a/src/commands/cwg_create.ts +++ b/src/commands/cwg_create.ts @@ -95,7 +95,7 @@ export default class CWG_Create extends Command { .setTimestamp(new Date(message.timestamp)); const completed = [ - edit.edit(`***${this.client.stores.emojis.success} Successfully binded ${domain.domain} to port ${domain.port} for ${account.userID}.***`), + edit.edit(`***${this.client.stores.emojis.success} Successfully binded ${domain.domain} to port ${domain.port} for ${account.username}.***`), this.client.createMessage('580950455581147146', { embed }), this.client.getDMChannel(account.userID).then((r) => r.createMessage({ embed })), this.client.util.transport.sendMail({