Commit 7244c445 authored by nanahira's avatar nanahira

fix

parent bc3f016b
...@@ -41,16 +41,18 @@ export class MyPlugin { ...@@ -41,16 +41,18 @@ export class MyPlugin {
name = 'act-main'; name = 'act-main';
schema: Schema<Config> = Schema.object({ schema: Schema<Config> = Schema.object({
adminContext: Schema.any('管理员接口作用域。'), adminContext: Schema.any().description('管理员接口作用域。'),
autoChangeName: Schema.boolean( autoChangeName: Schema.boolean()
'公演开始之前是否修改每个演员机器人的群名片。推荐开启。', .description('公演开始之前是否修改每个演员机器人的群名片。推荐开启。')
).default(true), .default(true),
playbookPathPrefix: Schema.string( playbookPathPrefix: Schema.string()
'公演剧本存放路径。公演剧本的文件名是 `/path/to/playbookPathPrefix/name.json` 对应于 name 剧本。', .description(
).default('./playbooks'), '公演剧本存放路径。公演剧本的文件名是 `/path/to/playbookPathPrefix/name.json` 对应于 name 剧本。',
dropHelp: Schema.boolean('是否删除 `help` 命令,避免社死 (?)').default( )
false, .default('./playbooks'),
), dropHelp: Schema.boolean()
.description('是否删除 `help` 命令,避免社死 (?)')
.default(false),
}); });
apply(ctx: Context, config: Config) { apply(ctx: Context, config: Config) {
this.ctx = ctx; this.ctx = ctx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment