I would like my bot on discord to send a message when anyone types a word or a sentence. However, that sentence contains an emoji. How can I make the bot see the emoji? If there is no emoji, it works perfectly, the bot sends the wanted message but I can't figure out how to include the emoji.
I'd like the emoji in the part of the following code snippet, where currently I have XXXX.
async def on_message(self, message):
word_list = ['Lanfeust got 1 XXXX zombie eye']
# don't respond to ourselves
if message.author == self.user:
return
messageContent = message.content
if len(messageContent) > 0:
for word in word_list:
if word in messageContent:
await message.channel.send('Nice EYE <@459303124037926915>')
I have tried ['I want :apple: apple']
Name of the emoji
I have tried ['I want 908223460097011743 apple']
Id of the emoji
The bot doesn't catch up on it.
Thank you in advance