Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(cmd === `${prefix}8ball`){
- if (!args[2]) {
- const errEmbed = new Discord.RichEmbed()
- .setColor(0xFF0000)
- .setAuthor('ERROR')
- .setTitle(':exclamation: **Please ask a full question.**');
- message.channel.send({embed: errEmbed})
- return;
- }
- let replies = ["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.",
- "Yes.",
- "Signs point to yes.",
- "Reply hazy try again.",
- "Ask again later.",
- "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."];
- let result = Math.floor((Math.random() * replies.length));
- let question = args.slice().join(" ");
- let embedz = new Discord.RichEmbed()
- .setAuthor(message.author.username + " asks: " + question)
- .setColor("00FF15")
- .addField("Answer", replies[result] + "")
- message.channel.send(embedz)
- var reason = message.content.split(' ').slice(0).join(' ');
- let purgeEmbed = new Discord.RichEmbed()
- .setAuthor("📣 Action | Command Used")
- .setColor("RANDOM")
- .addField("Executor", `<@${message.author.id}>`)
- .addField("Channel", message.channel)
- .addField("Said:", reason)
- .setFooter("Bot Version 1.0.0", bot.user.displayAvatarURL);
- DChannel.send({embed: purgeEmbed});
- message.channel.stopTyping(true);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement