const { Command } = require('discord.js-commando'); const { MessageEmbed } = require('discord.js'); module.exports = class EightBallFun extends Command { constructor(client) { super(client, { name: '8ball', aliases: ['8b'], group: 'fun', memberName: '8ball', description: 'shake the 8ball 4 a fortune', throttling: { usages: 5, duration: 30 }, examples: ['s5n!8ball', 's5n!8b'] }); } run(msg) { var r = ['yes~ uwu', 'no.', 'yes!', 'no!', 'what, no.', 'yes.', 'maybe.', 'perhaps.', 'try again.', 'i\'m not sure.']; var s = r[Math.floor(Math.random() * r.length)]; let embed = new MessageEmbed() .setAuthor('the 8-ball says', 'https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/8-Ball_Pool.svg/500px-8-Ball_Pool.svg.png') .setDescription('`' + s + '`'); msg.channel.send(embed); } };