From bd6162e95506098de236d268d6724a78e2faf7a4 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 13 Jul 2020 13:07:28 -0700 Subject: [PATCH] make people that are not makayla bonkable --- bot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index dea4f6c..a75ae32 100644 --- a/bot.py +++ b/bot.py @@ -284,10 +284,12 @@ def cmd_still(match: Match[str]) -> Response: @handle_message('!bonk', flags=re.IGNORECASE) def cmd_bonk(match: Match[str]) -> Response: + _, _, rest = match['msg'].partition(' ') + rest = rest.strip() or 'Makayla_Fox' return MessageResponse( match, - 'Makayla_Fox: ' - 'https://i.fluffy.cc/DM4QqzjR7wCpkGPwTl6zr907X50XgtBL.png', + f'{esc(rest)}: ' + f'https://i.fluffy.cc/DM4QqzjR7wCpkGPwTl6zr907X50XgtBL.png', )