From eeb641eb4bd9912f744286bec91fc090f7e14d46 Mon Sep 17 00:00:00 2001 From: taylor <=> Date: Sat, 12 Oct 2024 18:01:14 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=85=B3=E9=97=ADtyping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maubot_llmplus/aibot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot_llmplus/aibot.py b/maubot_llmplus/aibot.py index 63469ee..7de4310 100644 --- a/maubot_llmplus/aibot.py +++ b/maubot_llmplus/aibot.py @@ -57,7 +57,7 @@ class AiBotPlugin(Plugin): for u in self.config['allowed_users']: self.log.debug(f"bot: {sender} -> {u}") # 如果sender是allowed_user中的一员, 那么就允许发送消息给AI - if re.Match(u, sender): + if re.match(u, sender): return True self.log.debug(f"{sender} doesn't match allowed_users") pass