anime-crossing / man-chan

A collaborative effort between friends. Multipurpose Discord Bot written in Python.
MIT License
2 stars 1 forks source link

42 x listener converter #45

Closed ssumachai closed 5 months ago

ssumachai commented 9 months ago

title.

Added additional check to on_reaction_add to see if link is a valid one

in later logic, assuming it passes EVERYTHING else, checks to see if the message (which would presumably be a twitter link at this point) has any additional embeds. Initial conversion would suppress all of it's original embeds turning message.embeds into an empty list. If the embeds are empty, clear it, there's no need to convert anything nor clear it.

Reacting with an emoji to something with an embed or a converted fxtwitter link shouldn't work either, cause it wouldn't clear the initial if statement