mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-10 05:00:59 +00:00
Update manager.py
This commit is contained in:
@@ -27,7 +27,7 @@ def check_response_rule(text: str):
|
|||||||
config = pkg.utils.context.get_config()
|
config = pkg.utils.context.get_config()
|
||||||
if not hasattr(config, 'response_rules'):
|
if not hasattr(config, 'response_rules'):
|
||||||
return False, ''
|
return False, ''
|
||||||
|
|
||||||
rules = config.response_rules
|
rules = config.response_rules
|
||||||
# 检查前缀匹配
|
# 检查前缀匹配
|
||||||
if 'prefix' in rules:
|
if 'prefix' in rules:
|
||||||
|
|||||||
Reference in New Issue
Block a user