diff options
| author | Tianhao Wang <wth@riseup.net> | 2024-01-11 13:54:33 +0000 |
|---|---|---|
| committer | Tianhao Wang <wth@riseup.net> | 2024-01-11 13:54:33 +0000 |
| commit | e42b828862db9d388f28a35f5862a061aaeb204c (patch) | |
| tree | 5dd5686a5bb83c800d5e18bc65cac633c226c080 | |
| parent | 7b3ef7a4726ba1e76f99b8569767aea5be99a1f5 (diff) | |
interactions: ignore emoji shortcodes
| -rw-r--r-- | patterns.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patterns.py b/patterns.py index d5a99ce..fec5921 100644 --- a/patterns.py +++ b/patterns.py @@ -1,7 +1,7 @@ import re #### RE PATTERNS #### -re_contains_meow = re.compile(r'(me+o+w|喵|にゃん|nya+n)',re.IGNORECASE) +re_contains_meow = re.compile(r'((?<!:)me+o+w|喵|にゃん|nya+n)',re.IGNORECASE) re_contains_bird = re.compile(r'(鸟|鳥)',re.IGNORECASE) #### MISC STRING PRESETS #### cat_sounds = ["Meow!", "Mrrrow!", "Purr...", "Meee-OW!", "Mreoww!", "Nya~", "Mew?", "Rowr?", "Prrrr...", "Maow-maow!"] |
