diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2024-03-14 19:57:11 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2024-03-14 19:57:11 +0000 |
commit | 314597b069c4fcd0f7d6c4f7796b0048809e0c8a (patch) | |
tree | 1249ca1fcbc95e291b2590ef9af88bca394b9785 /markov | |
parent | 7576a456e436ef2f6ec615c7ad4a4bee8399c17b (diff) | |
download | aps-cogs-314597b069c4fcd0f7d6c4f7796b0048809e0c8a.tar aps-cogs-314597b069c4fcd0f7d6c4f7796b0048809e0c8a.tar.gz aps-cogs-314597b069c4fcd0f7d6c4f7796b0048809e0c8a.zip |
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.
Diffstat (limited to 'markov')
-rw-r--r-- | markov/markov.py | 2 |
1 files changed, 1 insertions, 1 deletions
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']+|[\.,!?\/;]|<a?:\w+:\d+>|<#\d+>|<@!?\d+>", content ) if len(token) <= MAX_TOKEN_LENGTH ] |