This commit is contained in:
rhearmas 2019-12-21 17:28:53 -05:00
parent 1388c9dc78
commit e4451538e7
1 changed files with 68 additions and 0 deletions

68
commands/Fun/8ball.js Normal file
View File

@ -0,0 +1,68 @@
const responses = [
'Ask again later.',
'Soon.',
'Yes.',
'Absolutely!',
'Never.',
'When you are ready.',
'Hopefully.',
'Hopefully not.',
'Oh my, why would you even ask that?',
'What kind of a question is that?',
'Over my dead body!',
'Haha, funny joke.',
'It is certain.',
'It is decidedly so.',
'Without a doubt.',
'Yes - definitely.',
'You may rely on it.',
'As I see it, yes.',
'Most likely.',
'Outlook good.',
'Signs point to yes.',
'Reply hazy, try again.',
'Better not tell you now.',
'Cannot predict now.',
'Concentrate and ask again.',
'Don\'t count on it.',
'My reply is no.',
'My sources say no.',
'Outlook not so good.',
'Very doubtful.'
];
function randomItem(array) {
return array[Math.floor(Math.random() * array.length)];
}
exports.run = async (client, message, args, level) => {
message.delete();
if (args.length < 1) {
return (await message.reply("Please specify something to ask of the magic 8-ball!")).delete(5000);
}
let response = randomItem(responses);
const query = args.join(' ');
if (query.indexOf('ipodtouch0218') > -1 || query.indexOf('233360087979130882') > -1) {
response = 'HAH';
}
message.channel.send(`**${message.author.username}** asks: "${query}"\n**:8ball::** ${response}`);
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: "User"
};
exports.help = {
name: "8ball",
category: "Fun",
description: "Ask the magic eight ball for wisdom.",
usage: "8ball <query>"
};