1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
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) {
super(client, {
name: '8ball',
aliases: [
'8b',
'9b',
'9ball',
'7b',
'7ball'
],
group: 'fun',
memberName: '8ball',
description: 'Shake the 8ball for a fortune.',
throttling: {
usages: 5,
duration: 30
},
examples: ['uwu!8ball', 'uwu!8b 002'],
userPermissions: ['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, { 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 + '`');
msg.say(embed);
}
};
|