// NOTE: This wont work without a proper index and command handler! If you're interested in implementing this code, I'd suggest watching WornOffKeys's tutorials on getting started and a basic command handler! command(client, 'food', message => { const author = message.author.id const Embed = new Discord.MessageEmbed() .setTitle('What time is it?') .setDescription('šŸŒž Morning!\nšŸ‘¦ Noon\nšŸ˜« Afternoon\nšŸŒ™ Evening\nāŒ Cancel') .setColor(3426654) message.channel.send(Embed).then(async message => { message.react('šŸŒž') .then(() => message.react('šŸ‘¦')) .then(() => message.react('šŸ˜«')) .then(() => message.react('šŸŒ™')) .then(() => message.react('āŒ')) const filter2 = (reaction, user) => { return ['šŸŒž', 'šŸ‘¦', 'šŸ˜«', 'šŸŒ™', 'āŒ'].includes(reaction.emoji.name) && user.id === author; } message.awaitReactions(filter2, { max: 1, time: 30000, errors: ['time'] }).then(collected => { const reaction = collected.first(); if (reaction.emoji.name === 'šŸŒž') { const Embed = new Discord.MessageEmbed() .setTitle('Breakfast!') .setDescription('A nice loaf of bread with an egg on the side with a glass of orange juice, incredible!') .setImage('https://i.imgur.com/AA8IWVD.jpg') .setAuthor('Bot created by Bqre#0001', 'https://i.imgur.com/trvzFSz.png') .setColor(3426654) message.channel.send(Embed) } else if (reaction.emoji.name === 'šŸ‘¦') { const Embed = new Discord.MessageEmbed() .setTitle('Lunch!') .setDescription("It's very healthy to eat some meat, maybe some rice or some fries with a little salad on the side and, perferbally, a glass of water!") .setImage('https://i.imgur.com/4gtzezg.jpg') .setAuthor('Bot created by Bqre#0001', 'https://i.imgur.com/trvzFSz.png') .setColor(3426654) message.channel.send(Embed) } else if (reaction.emoji.name === 'šŸ˜«') { const Embed = new Discord.MessageEmbed() .setTitle('Fruits!') .setDescription("It's better that you'll save your hunger till dinner, just take a good bite of an apple and get on your way!") .setImage('https://i.imgur.com/6gywoBe.jpg') .setAuthor('Bot created by Bqre#0001', 'https://i.imgur.com/trvzFSz.png') .setColor(3426654) message.channel.send(Embed) } else if (reaction.emoji.name === 'šŸŒ™') { const Embed = new Discord.MessageEmbed() .setTitle('Dinner!') .setDescription("It's better to only eat meat once a day (Unless you're on a diet that requires meat, obviously), therefore you should once again take a nice salad, maybe some eggs with a tuna and bread, some rice, and a nice glass of water on the side!") .setImage('https://i.imgur.com/7LX64KI.jpg') .setAuthor('Bot created by Bqre#0001', 'https://i.imgur.com/trvzFSz.png') .setColor(3426654) message.channel.send(Embed) } else if (reaction.emoji.name === 'āŒ') { return message.channel.send("Cancelled! Come back when you're hungry!") } }) }) })