2021-02-05 21:59:24 -06:00
|
|
|
module.exports = {
|
|
|
|
name: '8ball',
|
|
|
|
description: 'Ask Anitrox a question, any question! and they will answer it!',
|
2022-03-17 23:32:20 -05:00
|
|
|
syntax: ["[Question]"],
|
2021-02-05 21:59:24 -06:00
|
|
|
execute(client, message, args) {
|
2022-03-17 23:32:20 -05:00
|
|
|
const {footerTxt} = require('../config.json');
|
2021-02-05 21:59:24 -06:00
|
|
|
const answers = [
|
|
|
|
"Heck no!",
|
|
|
|
"Are you crazy!? No!",
|
|
|
|
"Don't even think about it.",
|
|
|
|
"No! You might bork something!",
|
|
|
|
"Heck yeah",
|
2022-03-17 23:32:20 -05:00
|
|
|
"I don't think so.",
|
|
|
|
"Let me think about it first. No.",
|
|
|
|
"Let me think about it first. Yeah",
|
|
|
|
"Let me think about it first. Maybe",
|
|
|
|
"I don't know man",
|
|
|
|
"Maybe",
|
|
|
|
"I'm not sure",
|
|
|
|
"Ask again",
|
|
|
|
"YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE!!!",
|
2021-02-05 21:59:24 -06:00
|
|
|
"Definitely!",
|
2022-03-17 23:32:20 -05:00
|
|
|
"Go for it! :smile:",
|
|
|
|
"Good idea!",
|
|
|
|
"Sure"
|
2021-02-05 21:59:24 -06:00
|
|
|
]
|
2022-03-17 23:32:20 -05:00
|
|
|
const index = Object.keys(answers)[Math.floor(Math.random() * Object.keys(answers).length)];
|
2021-02-05 21:59:24 -06:00
|
|
|
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 = {
|
2022-03-17 23:32:20 -05:00
|
|
|
"title": "<:AnitroxError:809651936563429416> **Something went wrong!**",
|
|
|
|
"description": "You need to ask a",
|
2021-03-04 22:33:44 -06:00
|
|
|
"color": 13632027,
|
|
|
|
"footer": {
|
2022-03-17 23:32:20 -05:00
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
|
|
|
"text": footerTxt
|
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": {
|
2022-03-17 23:32:20 -05:00
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
|
|
|
"text": footerTxt
|
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
|
|
|
}
|