-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path8ball.js
More file actions
43 lines (40 loc) · 990 Bytes
/
8ball.js
File metadata and controls
43 lines (40 loc) · 990 Bytes
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
const responses = [
"It is certain.",
"Without a doubt.",
"You may rely on it.",
"Yes, definitely.",
"It is decidedly so.",
"As I see it, yes.",
"Most likely.",
"Outlook good.",
"Signs point to yes.",
"Absolutely!",
"Don't count on it.",
"My sources say no.",
"Outlook not so good.",
"Very doubtful.",
"Not likely.",
"Better not tell you now.",
"Chances are low.",
"Unlikely.",
"No way LMAO.",
"I highly doubt it.",
];
module.exports = {
name: "8ball",
description: "Ask the magic 8ball a question",
alias: ["eightball"],
usage: "/8ball <question>",
example: "/8ball Is this bot awesome?",
category: "Fun",
handler: async (ctx) => {
const { message } = ctx;
const { text } = message;
if (!text.substring(text.indexOf(" ") + 1)) {
await ctx.reply("You need to ask a question!");
return;
}
const response = responses[Math.floor(Math.random() * responses.length)];
await ctx.reply(response);
},
};