mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-13 06:00:58 +00:00
feat: 不使用3.9的语法以兼容3.8
This commit is contained in:
@@ -27,7 +27,7 @@ def go(func, args=()):
|
|||||||
|
|
||||||
|
|
||||||
# 检查消息是否符合泛响应匹配机制
|
# 检查消息是否符合泛响应匹配机制
|
||||||
def check_response_rule(text: str) -> tuple[bool, str]:
|
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, ''
|
||||||
|
|||||||
Reference in New Issue
Block a user