I've coded a discord bot that adds a role to a user who reacted to a message. The bot also replies to the message 'Hallo Bot'. But when I turn off the bot and turn it on again, the bot won't reply to the message before I reacted to the other message.
async def on_raw_reaction_add(self, payload):
mitglied = discord.utils.get(payload.member.guild.roles, name="Mitglied")
if str(payload.emoji) == "????":
await payload.member.add_roles(mitglied)
async def on_message(self, message):
if message.content.startswith("Hallo Bot"):
await message.channel.send("Hallo " + str(message.author.name))