SHARE
TWEET

Untitled

a guest Apr 24th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  if(cmd === `${prefix}8ball`){  
  2.          
  3.  
  4.  
  5.   if (!args[2]) {
  6.     const errEmbed = new Discord.RichEmbed()
  7.   .setColor(0xFF0000)
  8.   .setAuthor('ERROR')
  9.   .setTitle(':exclamation: **Please ask a full question.**');
  10.   message.channel.send({embed: errEmbed})
  11.   return;
  12. }
  13.     let replies = ["It is certain",
  14.                                         "It is decidedly so.",
  15.                                         "Without a doubt.",
  16.                                         "Yes, definitely.",
  17.                                         "You may rely on it.",
  18.                                         "As I see it, yes.",
  19.                                         "Most likely.",
  20.                                         "Outlook good.",
  21.                                         "Yes.",
  22.                                         "Signs point to yes.",
  23.                                         "Reply hazy try again.",
  24.                                         "Ask again later.",
  25.                                         "Better not tell you now.",
  26.                                         "Cannot predict now.",
  27.                                         "Concentrate and ask again.",
  28.                                         "Don't count on it.",
  29.                                         "My reply is no.",
  30.                                         "My sources say no.",
  31.                                         "Outlook not so good.",
  32.                                         "Very doubtful."];
  33.     let result = Math.floor((Math.random() * replies.length));
  34.  
  35.     let question = args.slice().join(" ");
  36.  
  37.     let embedz = new Discord.RichEmbed()
  38.         .setAuthor(message.author.username + " asks: " + question)
  39.         .setColor("00FF15")
  40.         .addField("Answer", replies[result] + "")
  41.  
  42.    
  43.    
  44.    
  45.    
  46.     message.channel.send(embedz)
  47.      var reason = message.content.split(' ').slice(0).join(' ');
  48.     let purgeEmbed = new Discord.RichEmbed()
  49.     .setAuthor("📣 Action | Command Used")
  50.     .setColor("RANDOM")
  51.     .addField("Executor", `<@${message.author.id}>`)
  52.     .addField("Channel", message.channel)
  53.     .addField("Said:", reason)
  54.    
  55.     .setFooter("Bot Version 1.0.0", bot.user.displayAvatarURL);
  56.            DChannel.send({embed: purgeEmbed});
  57.     message.channel.stopTyping(true);
  58.    
  59. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top