From e1db381d2a331ebcbf308490ee2d53fb8a8fc0a1 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Mon, 9 Nov 2020 14:29:09 +0800 Subject: [Update] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整文件结构; 修复文件读取、创建问题; 重构部分代码; 修复: - 涩图插件名读取错误 - 私聊消息无法发送 新增: - 好友请求处理 - 邀请请求处理 --- ATRI/plugins/plugin_sqlite/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ATRI/plugins/plugin_sqlite') diff --git a/ATRI/plugins/plugin_sqlite/__init__.py b/ATRI/plugins/plugin_sqlite/__init__.py index ef03bab..a1208f1 100644 --- a/ATRI/plugins/plugin_sqlite/__init__.py +++ b/ATRI/plugins/plugin_sqlite/__init__.py @@ -43,7 +43,7 @@ UploadSetu = on_command('setu-upload', permission=SUPERUSER) async def _(bot: Bot, event: Event, state: dict) -> None: msg = str(event.message).strip().split(' ') - if not msg[0] and msg[1]: + if not msg[0] and not msg[1]: msg0 = "请检查格式奥~!\n" msg0 += "setu-upload [type] [pid]\n" msg0 += "type: normal, nearR18, r18" @@ -118,7 +118,7 @@ DeleteSetu = on_command('setu-delete', permission=SUPERUSER) async def _(bot: Bot, event: Event, state: dict) -> None: msg = str(event.message).strip().split(' ') - if not msg[0] and msg[1]: + if not msg[0] and not msg[1]: msg0 = "请检查格式奥~!\n" msg0 += "setu-delete [type] [pid]\n" msg0 += "type: normal, nearR18, r18" -- cgit v1.2.3