this is why we can't have nice things, AndrewLaneX

This commit is contained in:
Anthony Sottile 2020-05-05 13:01:06 -07:00
parent 793049411a
commit c2a96905ac
1 changed files with 2 additions and 0 deletions

2
bot.py
View File

@ -229,6 +229,8 @@ for _cmd, _msg in _TEXT_COMMANDS:
@handle_message('!still') @handle_message('!still')
def cmd_still(match: Match[str]) -> Response: def cmd_still(match: Match[str]) -> Response:
_, _, rest = match['msg'].partition(' ') _, _, rest = match['msg'].partition(' ')
if rest.startswith('/disconnect'):
rest = f' {rest}'
year = datetime.date.today().year year = datetime.date.today().year
lol = random.choice(['LOL', 'LOLW', 'LMAO', 'NUUU']) lol = random.choice(['LOL', 'LOLW', 'LMAO', 'NUUU'])
return MessageResponse(match, f'{esc(rest)}, in {year} - {lol}!') return MessageResponse(match, f'{esc(rest)}, in {year} - {lol}!')