Fixed kinda broken regex
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Remy Moll 2023-08-03 09:05:45 +00:00
parent a666b8e9ae
commit 2afde219a9

View File

@ -18,7 +18,7 @@ class TurtleHandler(BaseHandler):
def __init__(self):
self.entry_string = "Variation of hallo"
self.handler = MessageHandler(
filters.Regex(r"[hH]([aA]+|[eE]+)[lL]{2,}[oOöÖ]+(le)?|(chen)") |
filters.Regex(r"[hH]([aA]+|[eE]+)[lL]{2,}[oOöÖ]+(le|chen)?") |
# react to hello strings
filters.Regex(b"\xF0\x9F\x90\xA2".decode("utf8")) |
# react to turtle emoji