排行榜指令
This commit is contained in:
6
robot.py
6
robot.py
@@ -407,13 +407,13 @@ class Robot(Job):
|
|||||||
await self.ipad_bot.send_text_message(group_id, rsp)
|
await self.ipad_bot.send_text_message(group_id, rsp)
|
||||||
else:
|
else:
|
||||||
# 处理特殊命令
|
# 处理特殊命令
|
||||||
if content == "^更新$":
|
if content.clean_content == "^更新$":
|
||||||
self.config.reload()
|
self.config.reload()
|
||||||
self.gbm.load_local_cache()
|
self.gbm.load_local_cache()
|
||||||
await self.ipad_bot.send_text_message("filehelper", "已更新")
|
await self.ipad_bot.send_text_message("filehelper", "已更新")
|
||||||
elif content == "PDF":
|
elif content.clean_content == "PDF":
|
||||||
self.generate_sehuatang_pdf()
|
self.generate_sehuatang_pdf()
|
||||||
elif content == "排行榜":
|
elif content.clean_content == "排行榜":
|
||||||
self.generate_and_send_ranking()
|
self.generate_and_send_ranking()
|
||||||
|
|
||||||
if is_group:
|
if is_group:
|
||||||
|
|||||||
Reference in New Issue
Block a user