From 152e9d7ed9893ea0eced41f50ddb4413ab3fd017 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 20 May 2025 18:25:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=B8=80=E5=AF=B9=E4=B8=80?= =?UTF-8?q?=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/robot.py b/robot.py index 873c597..aec4892 100644 --- a/robot.py +++ b/robot.py @@ -397,24 +397,6 @@ class Robot: # 尝试使用插件处理消息 plugin_processed = await self.process_plugin_message(message) - # self.LOG.debug(f"plugin_processed: {plugin_processed}") - # 处理群聊命令或私聊命令 - # self.LOG.debug(f"from_user: {from_user}-self.wxid: {self.wxid}") - if from_user == self.wxid: # 自己发送的消息 - if is_group: - rsp = self.gbm.handle_command(group_id, content.clean_content) - if rsp is not None: - await self.ipad_bot.send_text_message(group_id, rsp) - else: - # 处理特殊命令 - if content.clean_content == "^更新$": - self.config.reload() - self.gbm.load_local_cache() - await self.ipad_bot.send_text_message("filehelper", "已更新") - elif content.clean_content == "PDF": - await self.generate_sehuatang_pdf() - elif content.clean_content == "排行榜": - await self.generate_and_send_ranking() if is_group: self.LOG.debug(f"入库和记录群消息: {message}")