summaryrefslogtreecommitdiff
path: root/ATRI/plugins/plugin_sqlite
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-11-09 14:29:09 +0800
committerKyomotoi <[email protected]>2020-11-09 14:29:09 +0800
commite1db381d2a331ebcbf308490ee2d53fb8a8fc0a1 (patch)
tree5d3a85489fa5d32b9d05fcb67b40859adbe1b625 /ATRI/plugins/plugin_sqlite
parentb2ea4e6e378f4aa96dc2c4ffde8b3543ed478a41 (diff)
downloadATRI-e1db381d2a331ebcbf308490ee2d53fb8a8fc0a1.tar.gz
ATRI-e1db381d2a331ebcbf308490ee2d53fb8a8fc0a1.tar.bz2
ATRI-e1db381d2a331ebcbf308490ee2d53fb8a8fc0a1.zip
[Update]
调整文件结构; 修复文件读取、创建问题; 重构部分代码; 修复: - 涩图插件名读取错误 - 私聊消息无法发送 新增: - 好友请求处理 - 邀请请求处理
Diffstat (limited to 'ATRI/plugins/plugin_sqlite')
-rw-r--r--ATRI/plugins/plugin_sqlite/__init__.py4
1 files changed, 2 insertions, 2 deletions
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"