// Will not work without a proper command handler! I'm using WOK's Command Handler for this, use that if you're planning to use this code :) const Discord = require('discord.js') module.exports = { name: 'randommcd', description: 'generates a random McDonalds item', minArgs: 0, maxArgs: 0, aliases: ['mcd', 'mcdonalds'], category: 'Fun', callback: (message, args) => { const first = ['Pancake', 'Yeetus', 'Burger Durger', 'Pogchamp', 'Schnitzel', 'Grandma', 'Child'] const randomIndex = Math.floor(Math.random() * first.length) const randomFirst = first[randomIndex] const second = ['Deluxe', 'EXTREME!!', 'Thicc Edition', 'Skeppy Edition', 'EXTRA WEXTRA DEXTRA', 'With extra spicey meat-a-balla!'] const randomIndex2 = Math.floor(Math.random() * second.length) const randomSecond = second[randomIndex2] const last = ['will get you all the ladies', 'will get you that EPIC VICTORY ROYALE', 'will give you a 1/10000000 chance to meet Skeppy!', "comes with a toy.. it's in the back of my van!", "Just buy it please I'm begging you I need money for food PLEASE!!!"] const randomIndex3 = Math.floor(Math.random() * last.length) const randomLast = last[randomIndex3] const type = ['Dessert', 'Meal', 'On the side'] const randomIndex4 = Math.floor(Math.random() * type.length) const randomType = type[randomIndex4] const Embed = new Discord.MessageEmbed() .setTitle('Random McDonalds Meal!') .setDescription(`Introducing: The Mc${randomFirst} ${randomSecond}!!\nThe meal that ${randomLast}`) .addField('Type', `${randomType}`) .setFooter("Bot created by Bqre#0001", 'https://i.imgur.com/trvzFSz.png') .setColor(3426654) if (randomType === 'Dessert') { Embed.setThumbnail('https://i.imgur.com/aogZPEs.png') } if (randomType === 'Meal') { Embed.setThumbnail('https://i.imgur.com/46Vpv16.png') } if (randomType === 'On the side') { Embed.setThumbnail('https://i.imgur.com/Z3JLd5v.png') } message.channel.send(Embed) } }