#Reactions?

1 messages · Page 1 of 1 (latest)

dull trail
#

Heya, I've looked through most of the docs but nothing jumped out at me here. I'm wondering if the interactions library supports a bot reacting to it's own posts and also listening for reactions on those same posts.

If it's helpful, I have a bot setup here and I'm looking to react to itself when it posts an image, so I can add thumbs up/thumbs down to the posted image. Here's the current sauce https://github.com/CoffeeVampir3/manual1111/blob/main/pybot.py#L46

Thanks for the help.

brazen cryptBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

brazen cryptBOT
scarlet sky
#

search "reaction" on docs you should find everything you need

dull trail
#

can I call these whenever I want?

brazen cryptBOT
scarlet sky
#

^you have the list of all events, you want the one when a new reaction is added

dull trail
#

is the idea I chain this off the message I sent like

msg = await ctx.send(file=temp_file.name, filename="image.png")
msg.add_reaction(etc)

or should I be setting up a listener for message create with the bot's id?

scarlet sky
#

yes that's good

#

just dont forget to await the function

dull trail
#

That's super simple, I was completely lost xD. Thanks very much for the help

scarlet sky
#

np