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: