We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64ebec5 commit 55ce048Copy full SHA for 55ce048
1 file changed
astrbot/core/platform/sources/kook/kook_config.py
@@ -74,7 +74,9 @@ def to_dict(self) -> dict[str, Any]:
74
return asdict(self)
75
76
def pretty_jsons(self, indent=2) -> str:
77
- return json.dumps(self.to_dict(), indent=indent, ensure_ascii=False)
+ dict_config = self.to_dict()
78
+ dict_config["token"] = "*" * len(self.token) if self.token else "MISSING"
79
+ return json.dumps(dict_config, indent=indent, ensure_ascii=False)
80
81
82
# TODO 没用上的config配置,未来有空会实现这些配置描述的功能?
0 commit comments