summaryrefslogtreecommitdiff
path: root/src/commands/fun/8ball.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/fun/8ball.ts')
-rw-r--r--src/commands/fun/8ball.ts51
1 files changed, 45 insertions, 6 deletions
diff --git a/src/commands/fun/8ball.ts b/src/commands/fun/8ball.ts
index 2ba8fc4..5fc6ad7 100644
--- a/src/commands/fun/8ball.ts
+++ b/src/commands/fun/8ball.ts
@@ -1,5 +1,6 @@
import { Command, CommandoMessage } from 'discord.js-commando';
import { MessageEmbed } from 'discord.js';
+import emoji from 'emoji-random'
module.exports = class EightBallFun extends Command {
constructor(client) {
@@ -19,18 +20,56 @@ module.exports = class EightBallFun extends Command {
usages: 5,
duration: 30
},
- examples: ['uwu!8ball', 'uwu!8b'],
+ examples: ['uwu!8ball', 'uwu!8b 002'],
userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
- clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
+ clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
+ args: [
+ {
+ key: 'bType',
+ prompt: 'What type of 8ball would you like?',
+ type: 'string',
+ default: ''
+ }
+ ]
});
}
- run(msg: CommandoMessage) {
- var r = ['yes~ uwu', 'no.', 'yes!', 'no!', 'what, no.', 'yes.', 'maybe.', 'perhaps.', 'try again.', 'I\'m not sure.'];
+ run(msg: CommandoMessage, { bType }) {
+ if (bType == 'darling' || bType == '002' || bType == 'zero two' || bType == 'zero-two') {
+ var r = [
+ 'Maybe, darling.',
+ 'Certainly not, darling.',
+ 'I hope so, darling.',
+ 'Not in our wildest dreams, darling.',
+ 'There is a good chance, darling.',
+ 'Quite likely, darling.',
+ 'I think so, darling.',
+ 'I hope not, darling.',
+ 'I hope so, darling.',
+ 'Never!',
+ 'Ahaha! Really?!? XD',
+ 'Hell, yes.',
+ 'Hell to the no.',
+ 'The future is bleak, darling',
+ 'The future is uncertain, darling',
+ 'I would rather not say, darling',
+ 'Who cares?',
+ 'Possibly, darling',
+ 'Never, ever, ever... ever.',
+ 'There is a small chance, darling.',
+ 'Yes, darling!'
+ ]
+ } else if (bType) {
+ msg.reply('Arguments? Try `uwu!8ball 002`. ' + emoji.random())
+ var r = ['yes~ uwu', 'no.', 'yes!', 'no!', 'what, no.', 'yes.', 'maybe.', 'perhaps.', 'try again.', 'I\'m not sure.'];
+ } else {
+ 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 + '`');
+ .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);
}