去除一对一指令
This commit is contained in:
18
robot.py
18
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}")
|
||||
|
||||
Reference in New Issue
Block a user