From 146564b4d0c811bf5aed8c670027c2c127117fe5 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Mon, 25 Oct 2021 05:32:28 +0000 Subject: =?UTF-8?q?:rotating=5Flight:=20=E8=87=AA=E5=8A=A8=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/setu/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ATRI/plugins/setu/__init__.py') diff --git a/ATRI/plugins/setu/__init__.py b/ATRI/plugins/setu/__init__.py index ffaae8d..16fe18b 100644 --- a/ATRI/plugins/setu/__init__.py +++ b/ATRI/plugins/setu/__init__.py @@ -164,12 +164,14 @@ async def _deal_check(bot: Bot, event: MessageEvent, state: T_State): catcher_setting = Setu().on_command("嗅探", "涩图检测图片文件大小设置") + @catcher_setting.handle() async def _catcher_setting(bot: Bot, event: MessageEvent, state: T_State): msg = str(event.message).strip() if msg: state["catcher_set"] = msg + @catcher_setting.got("catcher_set", "数值呢?(1对应1kb,默认128)") async def _deal_setting(bot: Bot, event: MessageEvent, state: T_State): global _catcher_max_file_size @@ -178,7 +180,7 @@ async def _deal_setting(bot: Bot, event: MessageEvent, state: T_State): _catcher_max_file_size = int(msg) except Exception: await catcher_setting.reject("请发送阿拉伯数字~!") - + repo = f"好诶!涩图检测文件最小值已设为:{_catcher_max_file_size}kb" await catcher_setting.finish(repo) -- cgit v1.2.3