From 628082c93adb14e0375c3fff17c4d095f153458d Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 20 May 2025 10:01:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E8=A1=8C=E6=A6=9C=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/robot.py b/robot.py index 75102b0..04f1e11 100644 --- a/robot.py +++ b/robot.py @@ -407,13 +407,13 @@ class Robot(Job): await self.ipad_bot.send_text_message(group_id, rsp) else: # 处理特殊命令 - if content == "^更新$": + if content.clean_content == "^更新$": self.config.reload() self.gbm.load_local_cache() await self.ipad_bot.send_text_message("filehelper", "已更新") - elif content == "PDF": + elif content.clean_content == "PDF": self.generate_sehuatang_pdf() - elif content == "排行榜": + elif content.clean_content == "排行榜": self.generate_and_send_ranking() if is_group: