From cae3c5e542fa85d85d5ad5a34b867f91cd08afad Mon Sep 17 00:00:00 2001 From: Lance Krasniqi Date: Wed, 12 Aug 2020 16:24:53 +0200 Subject: [PATCH] feat: added a magicball for community --- src/bot/commands/8ball.ts | 19 +++++++++++++++++++ src/bot/commands/index.ts | 4 +++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/bot/commands/8ball.ts diff --git a/src/bot/commands/8ball.ts b/src/bot/commands/8ball.ts new file mode 100644 index 0000000..cfef8ad --- /dev/null +++ b/src/bot/commands/8ball.ts @@ -0,0 +1,19 @@ +import Discord from 'discord.js'; + +import ICommand from './ICommand'; + +const command: ICommand = { + name: '8ball', + aliases: ['eightball', 'magicball', 'ball', 'wisdomball'], + description: 'Ask the magic eightball for advice!', + async execute(message: Discord.Message, args: string[]) { + const responses = ["as I see it, yes.", "err, ask again later.", "better not tell you now.", "that's hard to predict right now.", + "concentrate... and ask again.", "don't count on it.", "it is certain.", "it is decidedly so.", "most likely.", "no.", + "likely not.", "my sources say no.", "hmm, outlook not so good.", "outlook is good.", "not sure, try again.", + "as dubealex commands it: maybe!", "googliano'd the answer and uh, it's a yes?", "careful, but yes", + "signs point to yes.", "very doubtful.", "without a doubt.","yes.", "yes - definitely.", "yeah, you can rely on it."]; + message.reply(responses[Math.floor(Math.random() * responses.length)]); + }, +}; + +export default command; \ No newline at end of file diff --git a/src/bot/commands/index.ts b/src/bot/commands/index.ts index 3bfaee0..c96783d 100644 --- a/src/bot/commands/index.ts +++ b/src/bot/commands/index.ts @@ -1,9 +1,11 @@ import help from './help'; import ping from './ping'; import see from './see'; +import magicball from './8ball'; export default [ help, ping, - see + see, + magicball ] \ No newline at end of file