Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-act
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
koishi-plugin-act
Commits
7244c445
Commit
7244c445
authored
Nov 29, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bc3f016b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
src/plugin.ts
src/plugin.ts
+12
-10
No files found.
src/plugin.ts
View file @
7244c445
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment