Merge pull request #12 from isidentical/patch-1
add emacs to gnu/thing handler
This commit is contained in:
commit
fa9a564f1b
2
bot.py
2
bot.py
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue