Update custom emote regex

This commit is contained in:
Zeva Rose 2021-07-01 17:13:21 -06:00
parent 4135ff01d3
commit 377158c3ad

View file

@ -16,7 +16,7 @@ class AutoReactCog(commands.Cog):
self.bot = bot
config = get_config()
self.db = DBManager(config.mongo).mongo
self.custom_emote = re.compile(r"^<:.*:([0-9]+)>$")
self.custom_emote = re.compile(r"^<:[A-Za-z0-9_-]:([0-9]+)>$")
self.standard_emote = re.compile(
r"^[\U0001F100-\U000E007F]{0,}[\u200d-\ufe0f]{0,}?[\U0001F100-\U000E007F]{0,}?$"
)