chore: 添加key切换策略配置项

This commit is contained in:
RockChinQ
2023-08-04 15:21:31 +08:00
parent 7ca2aa5e39
commit 382d37d479
2 changed files with 9 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
from ..aamgr import AbstractCommandNode, Context
import logging
import json
@AbstractCommandNode.register(
parent=None,
@@ -19,6 +21,8 @@ class FuncCommand(AbstractCommandNode):
reply_str = "当前已加载的内容函数:\n\n"
logging.debug("host.__callable_functions__: {}".format(json.dumps(host.__callable_functions__, indent=4)))
index = 1
for func in host.__callable_functions__:
reply_str += "{}. {}{}:\n{}\n\n".format(index, ("(已禁用) " if not func['enabled'] else ""), func['name'], func['description'])