From 8c727326715de4cce4e4e765bb1893483b85e2f8 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 22 Feb 2024 14:38:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=80=E4=B8=8B=E5=86=85?= =?UTF-8?q?=E7=BD=AE=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ica-rs/plugins/base.py b/ica-rs/plugins/base.py index 7258a86..dc811a5 100644 --- a/ica-rs/plugins/base.py +++ b/ica-rs/plugins/base.py @@ -9,7 +9,7 @@ else: _version_ = "1.0.0" def on_message(msg: NewMessage, client: IcaClient) -> None: - if not msg.is_from_self: - if msg.content == "/bot-rs-py": + if not (msg.is_from_self or msg.is_reply): + if msg.content == "/bot": reply = msg.reply_with(f"ica-async-rs-sync-py {_version_}") client.send_message(reply)