fix: use try catch instead of config

This commit is contained in:
zhayujie
2023-03-24 00:59:26 +08:00
parent c1d1e923cd
commit 8c4a62b9c6
4 changed files with 9 additions and 6 deletions

View File

@@ -116,7 +116,7 @@ class Role(Plugin):
e_context.action = EventAction.CONTINUE
def get_help_text(self):
help_text = "输入\"$角色 (角色名)\"\"$role (角色名)\"为我设定角色吧,#reset 可以清除设定的角色。\n目前可用角色列表:\n"
help_text = "输入\"$角色 (角色名)\"\"$role (角色名)\"为我设定角色吧,#reset 可以清除设定的角色。\n\n目前可用角色列表:\n"
for role in self.roles:
help_text += f"[{role}]: {self.roles[role]['remark']}\n"
return help_text