2021-02-05 21:59:24 -06:00
|
|
|
module.exports = {
|
|
|
|
name: '8ball',
|
|
|
|
description: 'Ask Anitrox a question, any question! and they will answer it!',
|
|
|
|
execute(client, message, args) {
|
|
|
|
const answers = [
|
|
|
|
"Heck no!",
|
|
|
|
"Are you crazy!? No!",
|
|
|
|
"Don't even think about it.",
|
|
|
|
"No! You might bork something!",
|
|
|
|
"Heck yeah",
|
|
|
|
"YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE",
|
|
|
|
"Definitely!",
|
|
|
|
"Go for it! :smile:"
|
|
|
|
// This should have a 50/50 amount of yes and no answers for equality even though anitrox doesn't seem to care 🙃
|
|
|
|
]
|
|
|
|
const index = Math.floor(Math.random() * (answers.length - 1) + 1);
|
|
|
|
var question = args.slice(0).join(" ")
|
|
|
|
var answer = (answers[index]);
|
|
|
|
console.log(args);
|
|
|
|
|
2021-03-04 22:33:44 -06:00
|
|
|
if (!question) {
|
|
|
|
const embed = {
|
|
|
|
"title": "<:AnitroxError:809651936563429416> Well that happened...",
|
|
|
|
"description": "You need to specify a question!",
|
|
|
|
"color": 13632027,
|
|
|
|
"footer": {
|
|
|
|
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
2022-01-12 13:13:23 -06:00
|
|
|
"text": "placeholder"
|
2021-03-04 22:33:44 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-02-05 21:59:24 -06:00
|
|
|
const embed = {
|
|
|
|
"title": ":8ball: Anitrox 8 Ball",
|
|
|
|
"description": "Your question: **" + question + "**",
|
2021-02-25 01:03:33 -06:00
|
|
|
"color": 9442302,
|
2021-02-05 21:59:24 -06:00
|
|
|
"footer": {
|
|
|
|
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
2022-01-12 13:13:23 -06:00
|
|
|
"text": "placeholder"
|
2021-02-05 21:59:24 -06:00
|
|
|
},
|
|
|
|
|
|
|
|
"fields": [
|
|
|
|
{
|
|
|
|
"name": "🤔 My Answer",
|
|
|
|
"value": answer
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
message.channel.send({ embed });
|
2021-03-04 22:33:44 -06:00
|
|
|
|
2021-02-05 21:59:24 -06:00
|
|
|
}
|
2021-02-05 01:33:25 -06:00
|
|
|
}
|