From 832ca22bc13a8e13f12e84172d26678f41ab1f4e Mon Sep 17 00:00:00 2001 From: missytake Date: Mon, 21 Apr 2025 00:54:04 +0200 Subject: [PATCH] fix: avoid '/help is not an email address' --- src/keyserver_bot/hooks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/keyserver_bot/hooks.py b/src/keyserver_bot/hooks.py index 631300c..fa89dcb 100644 --- a/src/keyserver_bot/hooks.py +++ b/src/keyserver_bot/hooks.py @@ -33,6 +33,8 @@ def command(event): return snapshot.chat.send_text(snapshot.chat.account.get_qr_code()) elif snapshot.text == "Messages are guaranteed to be end-to-end encrypted from now on.": return + elif snapshot.text.strip() == "/help": + return snapshot.chat.send_text(HELP_MSG) elif snapshot.text == "/publish": vcard_to_upload = snapshot.sender.make_vcard() if snapshot.get("file"):