I've been working on developing a Discord bot that will react whenever it detects the mention of 'Tier 5 Egg' in any part of a message.
bot.on("message", message => {
if(message.content === 'Tier 5 Egg') {
message.channel.send('A Tier 5 Egg has appeared for @role1 and @role2');
}
});
My goal is for the bot to send a message and tag two specific roles when it reacts. I tried using "@" followed by their role ID, but it displays as plain text. I'm also struggling with getting the bot to recognize the entire message for that specific phrase.