From 314597b069c4fcd0f7d6c4f7796b0048809e0c8a Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Thu, 14 Mar 2024 15:57:11 -0400 Subject: markov: support animated emoji Also support the old ping syntax with an exclamation mark. I don't think clients use it but it still works and bots can send it, so better to allow it. --- markov/markov.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'markov/markov.py') diff --git a/markov/markov.py b/markov/markov.py index 1819b12..b750519 100644 --- a/markov/markov.py +++ b/markov/markov.py @@ -92,7 +92,7 @@ class Markov(commands.Cog): + [ token for token in re.findall( - r"[\w']+|[\.,!?\/;]|<:\w+:\d+>|<#\d+>|<@\d+>", content + r"[\w']+|[\.,!?\/;]||<#\d+>|<@!?\d+>", content ) if len(token) <= MAX_TOKEN_LENGTH ] -- cgit v1.2.3-57-g22cb