// 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, 'monkey', message => { const monkeys = ['https://i.imgur.com/7eAUKM9.jpg', 'https://i.imgur.com/JraMy48.jpg', 'https://media.tenor.com/images/40bb8beabb56c853dfd3d2738a6f48df/tenor.gif', 'https://images.unsplash.com/photo-1529247833802-700f53170380?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDAxNX0&auto=format&fit=crop&w=500&q=60', 'https://images.unsplash.com/photo-1544945832-f1250e1d77b7?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60', 'https://images.unsplash.com/photo-1580676916365-70b94de0aa79?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60', 'https://images.unsplash.com/photo-1552224106-e004d7d09157?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60'] const monkeyFacts = ['There are around 260 monkey species in the world. Most of them live in trees except for a few who seem to prefer the ground like baboons.', 'In general, monkeys are thought of as highly intelligent animals.', 'Most species of monkeys have tails except for the mighty ape. There are around 260 monkey species in the world. Most of them live in trees except for a few who seem to prefer the ground like baboons.', 'New World monkeys have tails that can grasp and hold things, but Old World monkeys don’t have this.', 'Apes are sometimes mistaken for monkeys but they actually aren’t monkeys.'] const randomIndex = Math.floor(Math.random() * monkeys.length) const randomIndex2 = Math.floor(Math.random() * monkeyFacts.length) const randomPicture = monkeys[randomIndex] const randomFact = monkeyFacts[randomIndex2] if (message.content.toLowerCase().startsWith('!monkey')) { const Embed = new Discord.MessageEmbed() .setTitle('Random Monke For You!') .setDescription(`**Fun monke fact**: \n ${randomFact}`) .setColor(3426654) .setImage(randomPicture) .setAuthor('Bot created by Bqre#0001', 'https://i.imgur.com/trvzFSz.png') message.channel.send(Embed) } })