mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-12 06:55:49 +08:00
🐛 修复前缀导致的fullmatch
触发器的问题
This commit is contained in:
parent
51baa9b511
commit
389a81c8f7
@ -68,7 +68,7 @@ class Trigger:
|
||||
return False
|
||||
|
||||
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 False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user