summaryrefslogtreecommitdiff
path: root/ATRI/plugins/setu/__init__.py
diff options
context:
space:
mode:
authorLint Action <[email protected]>2021-10-25 05:32:28 +0000
committerLint Action <[email protected]>2021-10-25 05:32:28 +0000
commit146564b4d0c811bf5aed8c670027c2c127117fe5 (patch)
treea4704b4072bef61d0f63804818e03efcd8a6107b /ATRI/plugins/setu/__init__.py
parent0ab46384acb730e371fce99f48c91f7c8f37d721 (diff)
downloadATRI-146564b4d0c811bf5aed8c670027c2c127117fe5.tar.gz
ATRI-146564b4d0c811bf5aed8c670027c2c127117fe5.tar.bz2
ATRI-146564b4d0c811bf5aed8c670027c2c127117fe5.zip
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI/plugins/setu/__init__.py')
-rw-r--r--ATRI/plugins/setu/__init__.py4
1 files changed, 3 insertions, 1 deletions
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)