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
|
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);
}
};
|