From bdc7e3e3c3a05d4b76db190750a1716bbd99c93f Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Mon, 26 Feb 2024 06:10:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=97=E4=BA=86,=20=E5=85=88=E7=A6=81?= =?UTF-8?q?=E7=94=A8,=20=E6=89=8D=E6=84=8F=E8=AF=86=E5=88=B0=E6=88=91?= =?UTF-8?q?=E5=95=A5api=E9=83=BD=E6=B2=A1=E7=BB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/save_eval.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ica-rs/plugins/save_eval.py b/ica-rs/plugins/save_eval.py index e4fb333..d44fd3c 100644 --- a/ica-rs/plugins/save_eval.py +++ b/ica-rs/plugins/save_eval.py @@ -71,10 +71,10 @@ def safe_eval(code: str, msg: NewMessage) -> str: return result -def on_message(message: NewMessage, client: IcaClient) -> None: - if not (message.is_from_self or message.is_reply): - if message.content.startswith("/="): - code = message.content[2:] - result = safe_eval(code, message) - reply = message.reply_with(result) - client.send_message(reply) +# def on_message(message: NewMessage, client: IcaClient) -> None: +# if not (message.is_from_self or message.is_reply): +# if message.content.startswith("/="): +# code = message.content[2:] +# result = safe_eval(code, message) +# reply = message.reply_with(result) +# client.send_message(reply)