From 3731ecb863974636ebd2887cecf51da6425d1987 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 23 Apr 2020 20:59:24 -0400 Subject: [PATCH] allow whois lookup by support key --- src/commands/whois.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/whois.ts b/src/commands/whois.ts index 67d1f67..5afa012 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -20,7 +20,7 @@ export default class Whois extends Command { public 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] }] }); + const account = await this.client.db.Account.findOne({ $or: [{ username: args[0] }, { userID: args[0] }, { emailAddress: args[0] }, { supportKey: args[0].toUpperCase() }] }); if (!account) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Account not found.***`); const embed = new RichEmbed(); embed.setTitle('Account Information');