I have a piece of code that reacts to a specific bot in a channel but the piece of code reacts to everything the bot says. The bot only types out in embed messages and I wasn't sure how to make the code look inside the embedded message and react to the message only if a certain keyword is said inside of the embed. Code:
client = discord.Client()
token = ("<discord token>")
@client.event
async def on_message(message):
channel = client.get_channel(825437474871312387)
if message.channel == channel and message.author.id == 342644185800769537:
if message.content == "test":
await message.add_reaction("❤️")
print("done")
if __name__ == '__main__':
client.run(token, bot=False)
print("can you see me?")