From 3b6d0e6d21dea68aff4c2db4b2c3c9223a29426e Mon Sep 17 00:00:00 2001 From: Yoav Caspi Date: Sat, 7 Sep 2019 22:41:22 +0300 Subject: [PATCH] add ignore case for gnu handle_message function --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 2477c91..85cbf00 100644 --- a/bot.py +++ b/bot.py @@ -297,7 +297,7 @@ def msg_ping(match: Match[str]) -> Response: return MessageResponse(match, f'PONG {esc(rest)}') -@handle_message(r'.*\b(nano|linux|windows)\b') +@handle_message(r'.*\b(nano|linux|windows)\b', flags=re.IGNORECASE) def msg_gnu_please(match: Match[str]) -> Response: msg, word = match[3], match[4] if f'GNU/{word}' in msg or f'gnu/{word}' in msg: