diff options
Diffstat (limited to 'src/commands/fun/8ball.js')
| -rw-r--r-- | src/commands/fun/8ball.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/commands/fun/8ball.js b/src/commands/fun/8ball.js new file mode 100644 index 0000000..e4cb3a2 --- /dev/null +++ b/src/commands/fun/8ball.js @@ -0,0 +1,30 @@ +const { Command } = require('discord.js-commando'); +const { MessageEmbed } = require('discord.js'); + +module.exports = class EightBallFun extends Command { + constructor(client) { + super(client, { + name: '8ball', + aliases: ['8b'], + group: 'fun', + memberName: '8ball', + description: 'shake the 8ball 4 a fortune', + throttling: { + usages: 5, + duration: 30 + }, + examples: ['s5n!8ball', 's5n!8b'] + }); + } + run(msg) { + var r = ['yes~ uwu', 'no.', 'yes!', 'no!', 'what, no.', 'yes.', 'maybe.', 'perhaps.', 'try again.', 'i\'m not sure.']; + var s = r[Math.floor(Math.random() * r.length)]; + + let embed = new MessageEmbed() + + .setAuthor('the 8-ball says', 'https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/8-Ball_Pool.svg/500px-8-Ball_Pool.svg.png') + .setDescription('`' + s + '`'); + + msg.channel.send(embed); + } +};
\ No newline at end of file |