'How to make sure that the bot automatically puts the specified reaction on each message in a specific channel?
def green_check(reaction, user):
return str(reaction.emoji) == '🟢' and user != bot.user
try:
reaction, user = await bot.wait_for('reaction_add', timeout=3600.0, check=green_check)
except asyncio.TimeoutError:
await concept_msg.delete()
await ctx.author.send("No moderator responded, wait some time and try again.")
return
else:
concept_embed_dict = concept_embed.to_dict()
Solution 1:[1]
Assuming you just want your message to have an initial reaction by your bot, you can use Message.add_reaction().
await concept_msg.add_reaction('?')
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | 3nws |
