diff --git a/bot.py b/bot.py index 55fef1f..573164e 100644 --- a/bot.py +++ b/bot.py @@ -320,9 +320,9 @@ def msg_ping(match: Match[str]) -> Response: @handle_message(r'.*\b(nano|linux|windows|emacs)\b', flags=re.IGNORECASE) def msg_gnu_please(match: Match[str]) -> Response: msg, word = match[3], match[4] - query = re.match(fr'gnu[/+]{word}', msg, flags=re.IGNORECASE) + query = re.match(f'gnu[/+]{word}', msg, flags=re.IGNORECASE) if query: - return MessageResponse(match, f'YES! {query.match(0)}') + return MessageResponse(match, f'YES! {query[0]}') else: return MessageResponse(match, f"Um please, it's GNU/{esc(word)}!")