Advertisement
FredrikPlays

DIscord.js 8ball command

Jun 27th, 2020
2,910
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2.  
  3. module.exports = {
  4.     name: '8ball',
  5.     description: `Game: 8ball, returns a random message to user`,
  6.     execute: async function (client, message, args) {
  7.  
  8.         let eightBall = [
  9.             'It is certain',
  10.             'It is decidedly so',
  11.             'Without a doubt',
  12.             'Yes – definitely',
  13.             'You may rely on it',
  14.             'As I see it, yes',
  15.             'Most likely',
  16.             'Outlook good',
  17.             'Yes',
  18.             'Signs point to yes',
  19.             'Reply hazy, try again',
  20.             'Ask again later',
  21.             'Better not tell you now',
  22.             'Cannot predict now',
  23.             'Concentrate and ask again',
  24.             'Don\'t count on it',
  25.             'My reply is no',
  26.             'My sources say no',
  27.             'Outlook not so good',
  28.             'Very doubtful',
  29.         ];
  30.  
  31.         let answer = Math.floor(Math.random() * eightBall.length);
  32.  
  33.         await message.channel.send({
  34.             embed: {
  35.                 color: `#00ddff`,
  36.                 description: `🎱 <@${message.author.id}>, ${eightBall[answer]}`,
  37.                 footer: {
  38.                     text: `Original Message: ${args.join(' ')}`
  39.                 }
  40.             }
  41.         });
  42.     }
  43. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement