make people that are not makayla bonkable

This commit is contained in:
Anthony Sottile 2020-07-13 13:07:28 -07:00
parent 6c299e6bc9
commit bd6162e955
1 changed files with 4 additions and 2 deletions

6
bot.py
View File

@ -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',
)