Merge pull request #12 from isidentical/patch-1

add emacs to gnu/thing handler
This commit is contained in:
Anthony Sottile 2019-10-19 14:18:59 -07:00 committed by GitHub
commit fa9a564f1b
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)}')
@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:
msg, word = match[3], match[4]
if f'GNU/{word}' in msg or f'gnu/{word}' in msg: