add emacs to gnu/thing handler

This commit is contained in:
Batuhan Taşkaya 2019-10-20 00:10:46 +03:00 committed by GitHub
parent 3f9cef4d9d
commit 4e3ced97aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -317,7 +317,7 @@ def msg_ping(match: Match[str]) -> Response:
return MessageResponse(match, f'PONG {esc(rest)}') return MessageResponse(match, f'PONG {esc(rest)}')
@handle_message(r'.*\b(nano|linux|windows)\b', flags=re.IGNORECASE) @handle_message(r'.*\b(nano|linux|windows|emacs)\b', flags=re.IGNORECASE)
def msg_gnu_please(match: Match[str]) -> Response: def msg_gnu_please(match: Match[str]) -> Response:
msg, word = match[3], match[4] msg, word = match[3], match[4]
if f'GNU/{word}' in msg or f'gnu/{word}' in msg: if f'GNU/{word}' in msg or f'gnu/{word}' in msg: