Update custom emote regex (again)

This commit is contained in:
Zeva Rose 2021-07-01 17:13:35 -06:00
parent 377158c3ad
commit c321efa8f7

View file

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