From bea07f846717acba6665a5c8aa3e41031043ef37 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 4 May 2020 12:38:28 -0700 Subject: [PATCH] add !water and !levelup --- bot.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bot.py b/bot.py index ee15a99..f7d5e55 100644 --- a/bot.py +++ b/bot.py @@ -364,6 +364,16 @@ def cmd_pep(match: Match[str]) -> Response: 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+') SECRET_CMDS = frozenset(('!settoday',))