2021-06-12 12:53:51 +02:00
|
|
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
|
|
|
|
|
|
|
const answers = [
|
|
|
|
"Maybe.",
|
|
|
|
"Certainly not.",
|
|
|
|
"I hope so.",
|
|
|
|
"Not in your wildest dreams.",
|
|
|
|
"There is a good chance.",
|
|
|
|
"Quite likely.",
|
|
|
|
"I think so.",
|
|
|
|
"I hope not.",
|
|
|
|
"I hope so.",
|
|
|
|
"Never!",
|
|
|
|
"Fuhgeddaboudit.",
|
|
|
|
"Ahaha! Really?!?",
|
|
|
|
"Pfft.",
|
|
|
|
"Sorry, bucko.",
|
|
|
|
"Hell, yes.",
|
|
|
|
"Hell to the no.",
|
|
|
|
"The future is bleak.",
|
|
|
|
"The future is uncertain.",
|
|
|
|
"I would rather not say.",
|
|
|
|
"Who cares?",
|
|
|
|
"Possibly.",
|
|
|
|
"Never, ever, ever.",
|
|
|
|
"There is a small chance.",
|
|
|
|
"Yes!",
|
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
name: "8ball",
|
|
|
|
usage: "(Question)",
|
|
|
|
description: "8ball an answer",
|
2021-06-24 09:53:19 +02:00
|
|
|
category: "Fun",
|
2021-06-12 12:53:51 +02:00
|
|
|
run: async (client, message, args) => {
|
|
|
|
if (!args.join(" ").endsWith("?"))
|
2021-06-24 09:53:19 +02:00
|
|
|
return client.err(message, "Fun", "8ball", 101);
|
2021-06-12 12:53:51 +02:00
|
|
|
else {
|
|
|
|
const embed = new MessageEmbed()
|
|
|
|
.setAuthor(
|
|
|
|
`🎱 ${message.member.displayName} asks`,
|
|
|
|
message.author.displayAvatarURL({ dynamic: true })
|
|
|
|
)
|
|
|
|
.setDescription(
|
|
|
|
`**🎱Question:** \n${args.join(" ")} \n**🎱Answer:** \n ${
|
|
|
|
answers[Math.floor(Math.random() * answers.length)]
|
|
|
|
}`
|
|
|
|
)
|
|
|
|
.setColor(client.color)
|
|
|
|
.setTimestamp()
|
|
|
|
.setURL(client.web)
|
2021-06-24 09:53:19 +02:00
|
|
|
.setFooter(`Made by ${client.author}`);
|
2021-06-12 12:53:51 +02:00
|
|
|
message.inlineReply(embed);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
};
|