From e9110c3180b650d9d6d0886f34fca496e47558b4 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 2 Nov 2019 13:24:04 +0000 Subject: [PATCH] show help info --- src/commands/disk.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/disk.ts b/src/commands/disk.ts index 3379c24..3f2ae98 100644 --- a/src/commands/disk.ts +++ b/src/commands/disk.ts @@ -17,6 +17,7 @@ export default class Disk extends Command { async run(message: Message, args: string[]) { try { + if (!args[0]) return this.client.commands.get('help').run(message, [this.name]); const account = await this.client.db.Account.findOne({ $or: [{ username: args[0] }, { userID: args[0] }, { emailAddress: args[0] }] }); if (!account) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Account not found***`); if (account.root || args[0].includes('./')) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Permission denied***`);