🐛 修复前缀导致的fullmatch触发器的问题

This commit is contained in:
KimigaiiWuyi 2024-10-10 18:31:01 +08:00
parent 51baa9b511
commit 389a81c8f7

View File

@ -68,7 +68,7 @@ class Trigger:
return False return False
def _check_fullmatch(self, keyword: str, msg: str) -> bool: def _check_fullmatch(self, keyword: str, msg: str) -> bool:
if msg == keyword and msg.startswith(self.prefix): if msg == f'{keyword}{self.prefix}' and msg.startswith(self.prefix):
return True return True
return False return False