fix: 从消息链中移除at me前进行检查

This commit is contained in:
Rock Chin
2022-12-19 17:19:09 +08:00
parent 23df6c0707
commit eada778ab5

View File

@@ -290,7 +290,8 @@ class QQBotManager:
def process(text = None) -> str:
replys = ""
event.message_chain.remove(At(self.bot.qq))
if At(self.bot.qq) in event.message_chain:
event.message_chain.remove(At(self.bot.qq))
processing.append("group_{}".format(event.sender.id))