AardWolf / aardcogs

Cogs for Discord-Red
MIT License
4 stars 4 forks source link

Use commands.Cog.listener() for toasts #156

Closed AardWolf closed 5 years ago

AardWolf commented 5 years ago

Any checkin embed has "Checking ####" in the footer. Globally listen for the toast reaction and respond with a toast (PM user?):

@commands.Cog.listener()
async def on_reaction_add(reaction, adder): #reaction.message sis the message being reacted to, adder is the User

message.embeds -- returns a list of embeds

embed.footer() returns the footer contents

From there, use toast