diff options
| author | 8cy <[email protected]> | 2020-04-13 05:32:35 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-13 05:32:35 -0700 |
| commit | 9dff52f7d047c905326bc2f476ede5463e00f2a0 (patch) | |
| tree | 1fec8563b3b72fde9b2ab7ad9e56a97398798685 /src/commands/fun/8ball.js | |
| parent | typescript (diff) | |
| download | s5nical-9dff52f7d047c905326bc2f476ede5463e00f2a0.tar.xz s5nical-9dff52f7d047c905326bc2f476ede5463e00f2a0.zip | |
typescript final
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 |