加入撤回逻辑。
This commit is contained in:
@@ -112,7 +112,7 @@ class MessageRecallPlugin(MessagePluginInterface):
|
|||||||
try:
|
try:
|
||||||
# 从数据库里面提取可以处理的消息and StrTalker ={roomid}
|
# 从数据库里面提取可以处理的消息and StrTalker ={roomid}
|
||||||
sql = (f"SELECT * FROM MSG where IsSender=1 and CreateTime > (strftime('%s', 'now') - 120) "
|
sql = (f"SELECT * FROM MSG where IsSender=1 and CreateTime > (strftime('%s', 'now') - 120) "
|
||||||
f"limit {content[len(parts):].strip()}")
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user