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}")