Merge pull request #10 from jondeaves/8ball

feat: added a magicball for community
This commit is contained in:
Lance Krasniqi
2020-08-12 16:32:07 +02:00
committed by GitHub
2 changed files with 22 additions and 1 deletions

19
src/bot/commands/8ball.ts Normal file
View File

@@ -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;

View File

@@ -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
]