add: 添加命令ai model list的逻辑

This commit is contained in:
taylor
2024-10-13 20:11:46 +08:00
parent 825860b6f9
commit 8e82c01cab

View File

@@ -94,7 +94,7 @@ class AiBotPlugin(Plugin):
return False return False
# 检查是否发送消息中有带上机器人的别名 # 检查是否发送消息中有带上机器人的别名
if re.search("(^|\\s)(@)?" + self.get_bot_name() + "([ :,.!?]|$)", event.content.body, re.IGNORECASE): if re.search("(^|\\s)(@)?" + self.get_bot_name(self.config) + "([ :,.!?]|$)", event.content.body, re.IGNORECASE):
return True return True
# 当聊天室只有两个人并且其中一个是机器人时 # 当聊天室只有两个人并且其中一个是机器人时