回归,关闭插件,待后续优化

This commit is contained in:
liuwei
2025-04-08 16:31:23 +08:00
parent 9e4c3ab4e5
commit 0fe5f0ee9b
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
[MessageRecall] [MessageRecall]
enable = true enable = false
command = ["#撤回"] command = ["#撤回"]
command-format = "#撤回 3" command-format = "#撤回 3"

View File

@@ -110,8 +110,9 @@ class MessageRecallPlugin(MessagePluginInterface):
return True, "命令格式错误" return True, "命令格式错误"
try: try:
# 从数据库里面提取可以处理的消息and StrTalker ={roomid} and IsSender=1 # 从数据库里面提取可以处理的消息and StrTalker ={roomid}
sql = (f"SELECT * FROM MSG where CreateTime > (strftime('%s', 'now') - 120)") sql = (f"SELECT * FROM MSG where IsSender=1 and CreateTime > (strftime('%s', 'now') - 120) "
f"limit {parts[1]}")
data = wcf.query_sql('MSG0.db', sql) data = wcf.query_sql('MSG0.db', sql)
self.LOG.info(f"SQL:{sql}\n 查询到可撤回数据: {data}") self.LOG.info(f"SQL:{sql}\n 查询到可撤回数据: {data}")
if not data: if not data: