Update regex

This commit is contained in:
git-bruh 2020-12-09 17:03:40 +05:30
parent 36cd593cdc
commit fb7ecf1537
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6

View file

@ -137,7 +137,7 @@ class MatrixClient(nio.AsyncClient):
async def process_message(self, message):
mentions = re.findall(r"(^|\s)(@(\w*))", message)
emotes = re.findall(r":(.*?):", message)
emotes = re.findall(r":(\w*):", message)
guild = channel.guild