diff --git a/plugins/message_recall/main.py b/plugins/message_recall/main.py index e94f50d..a94a465 100644 --- a/plugins/message_recall/main.py +++ b/plugins/message_recall/main.py @@ -111,8 +111,7 @@ class MessageRecallPlugin(MessagePluginInterface): try: # 从数据库里面提取可以处理的消息and StrTalker ={roomid} and IsSender=1 - sql = (f"SELECT * FROM MSG where CreateTime > (strftime('%s', 'now') - 120) " - f"limit {parts[1]}") + sql = (f"SELECT * FROM MSG where CreateTime > (strftime('%s', 'now') - 120)") data = wcf.query_sql('MSG0.db', sql) self.LOG.info(f"SQL:{sql}\n 查询到可撤回数据: {data}") if not data: