feat: 不使用3.9的语法以兼容3.8

This commit is contained in:
Rock Chin
2023-02-22 13:12:51 +08:00
parent b6d731cf87
commit 2da5883d7a

View File

@@ -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()
if not hasattr(config, 'response_rules'):
return False, ''