add !water and !levelup

This commit is contained in:
Anthony Sottile 2020-05-04 12:38:28 -07:00
parent ed0408dbfb
commit bea07f8467
1 changed files with 10 additions and 0 deletions

10
bot.py
View File

@ -364,6 +364,16 @@ def cmd_pep(match: Match[str]) -> Response:
return MessageResponse(match, f'https://www.python.org/dev/peps/pep-{n}/') return MessageResponse(match, f'https://www.python.org/dev/peps/pep-{n}/')
@handle_message(r'!water')
def cmd_water(match: Match[str]) -> Response:
return MessageResponse(match, 'DRINK WATER, BITCH')
@handle_message(r'!levelup')
def cmd_levelup(match: Match[str]) -> Response:
return MessageResponse(match, 'https://i.imgur.com/Uoq5vGx.gif')
COMMAND_RE = re.compile(r'!\w+') COMMAND_RE = re.compile(r'!\w+')
SECRET_CMDS = frozenset(('!settoday',)) SECRET_CMDS = frozenset(('!settoday',))