mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-07-05 14:33:30 +00:00
🐛 修复前缀导致的fullmatch
触发器的问题
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user