This repository has been archived on 2024-01-30. You can view files and clone it, but cannot push or open issues or pull requests.
anitrox/commands/8ball.js

53 lines
1.4 KiB
JavaScript
Raw Normal View History

const answers = [
"Heck no!",
"Are you crazy!? No!",
"Don't even think about it.",
"No! You might bork something!",
"Heck yeah",
"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!!!",
"Definitely!",
"Go for it! :smile:",
"Good idea!",
"Sure"
]
module.exports = {
name: '8ball',
description: 'Ask Anitrox a question, any question! and they will answer it!',
syntax: ["[Question]"],
async execute(_, message, args, footer) {
const answer = answers[Math.floor(Math.random() * Object.keys(answers).length)];
const question = args.slice(0).join(" ")
console.log(args);
if (!question) {
await message.channel.send({embed: {
"title": "<:AnitroxError:809651936563429416> **Something went wrong!**",
"description": "You need to ask a question!",
"color": 13632027,
"footer": footer
}});
} else {
await message.channel.send({embed: {
"title": ":8ball: Anitrox 8 Ball",
"description": "Your question: **" + question + "**",
"color": 9442302,
"footer": footer,
"fields": [
{
"name": "🤔 My Answer",
"value": answer
}
]
}});
}
}
}