2022-05-10 01:17:25 +01:00
|
|
|
const { Message, Client, MessageEmbed } = require("discord.js");
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
name: "8ball",
|
|
|
|
aliases: ['8b'],
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param {Client} client
|
|
|
|
* @param {Message} message
|
|
|
|
* @param {String[]} args
|
|
|
|
*/
|
|
|
|
run: async (client, message, args) => {
|
|
|
|
const Responses = [
|
|
|
|
"Yes",
|
|
|
|
"No",
|
|
|
|
"Maybe",
|
|
|
|
"It is likely",
|
|
|
|
"It is unlikely"
|
|
|
|
];
|
|
|
|
|
|
|
|
let messageArgs = args.join(' ');
|
|
|
|
if (!messageArgs[1]) return message.reply('Please specify a topic.');
|
|
|
|
|
|
|
|
const embed = new MessageEmbed()
|
2022-05-10 12:33:44 +01:00
|
|
|
.setColor('GREEN')
|
2022-07-01 18:46:51 +01:00
|
|
|
.setFooter({ text: `Called By: ${message.author.tag}`})
|
2022-05-10 01:17:25 +01:00
|
|
|
.setTimestamp()
|
|
|
|
.setTitle("8Ball")
|
|
|
|
.addField(`${messageArgs}`,`${Responses[Math.floor(Math.random() * Responses.length)]}`)
|
|
|
|
|
|
|
|
message.channel.send({ embeds: [embed] })
|
|
|
|
},
|
|
|
|
};
|