add ignore case for gnu handle_message function
This commit is contained in:
parent
f65d15c08e
commit
3b6d0e6d21
2
bot.py
2
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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue