Commit 7244c445 authored by nanahira's avatar nanahira

fix

parent bc3f016b
......@@ -41,16 +41,18 @@ export class MyPlugin {
name = 'act-main';
schema: Schema<Config> = Schema.object({
adminContext: Schema.any('管理员接口作用域。'),
autoChangeName: Schema.boolean(
'公演开始之前是否修改每个演员机器人的群名片。推荐开启。',
).default(true),
playbookPathPrefix: Schema.string(
'公演剧本存放路径。公演剧本的文件名是 `/path/to/playbookPathPrefix/name.json` 对应于 name 剧本。',
).default('./playbooks'),
dropHelp: Schema.boolean('是否删除 `help` 命令,避免社死 (?)').default(
false,
),
adminContext: Schema.any().description('管理员接口作用域。'),
autoChangeName: Schema.boolean()
.description('公演开始之前是否修改每个演员机器人的群名片。推荐开启。')
.default(true),
playbookPathPrefix: Schema.string()
.description(
'公演剧本存放路径。公演剧本的文件名是 `/path/to/playbookPathPrefix/name.json` 对应于 name 剧本。',
)
.default('./playbooks'),
dropHelp: Schema.boolean()
.description('是否删除 `help` 命令,避免社死 (?)')
.default(false),
});
apply(ctx: Context, config: Config) {
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