You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that there are a lot of regex variants to remove/ignore emotes from discord messages. These should be placed into a central function (maybe in command_utils.py).
Some examples:
haiku.py: "<a?:.+?:[0-9]+?>"
yelling.py: ":[\w\-\+\~]+:" (does links as well)
cowsay.py: "<a?:\w+:\d+>"
Wow, if I had a nickel for every time I [found a regex for replacing discord emotes] ... I'd have two[three] nickels - which isn't a lot, but it's weird that it happened twice[thrice].
The text was updated successfully, but these errors were encountered:
I have noticed that there are a lot of regex variants to remove/ignore emotes from discord messages. These should be placed into a central function (maybe in
command_utils.py
).Some examples:
haiku.py
:"<a?:.+?:[0-9]+?>"
yelling.py
:":[\w\-\+\~]+:"
(does links as well)cowsay.py
:"<a?:\w+:\d+>"
The text was updated successfully, but these errors were encountered: