feat: 支持多场景预设切换

This commit is contained in:
Rock Chin
2023-02-19 11:46:12 +08:00
parent c35fd9c4b7
commit d0bcf6940a
7 changed files with 122 additions and 11 deletions

View File

@@ -27,7 +27,7 @@ def go(func, args=()):
# 检查消息是否符合泛响应匹配机制
def check_response_rule(text: str) -> (bool, str):
def check_response_rule(text: str) -> tuple[bool, str]:
config = pkg.utils.context.get_config()
if not hasattr(config, 'response_rules'):
return False, ''