Commit fde0c51e authored by nanahira's avatar nanahira

fix compile

parent 29e20dad
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
}, },
"peerDependencies": { "peerDependencies": {
"@koishijs/plugin-adapter-onebot": "^4.2.4", "@koishijs/plugin-adapter-onebot": "^4.2.4",
"koishi": "^4.7.4" "koishi": "^4.7.5"
} }
}, },
"node_modules/@ampproject/remapping": { "node_modules/@ampproject/remapping": {
...@@ -1046,15 +1046,15 @@ ...@@ -1046,15 +1046,15 @@
} }
}, },
"node_modules/@koishijs/core": { "node_modules/@koishijs/core": {
"version": "4.7.4", "version": "4.7.5",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.4.tgz", "resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.5.tgz",
"integrity": "sha512-S4pPaO05WC0htkQVcTMTluBZv4g8sEEBJ2ItHN2zJA8syet3iKJidT+s2gYt8d2rBo0Ndlvo1gBLGLNl/Zc9yg==", "integrity": "sha512-So8tBtSTVIq8dTGs/0o92Om3bQhgYUhmzVhnYTqJbx+kW3kSowl/ORiBhJFK3GR6Dj+JyKLptsqQNE4DjZdNhw==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"@koishijs/utils": "^5.4.5", "@koishijs/utils": "^5.4.5",
"cordis": "^1.3.3", "cordis": "^1.5.5",
"fastest-levenshtein": "^1.0.12", "fastest-levenshtein": "^1.0.12",
"minato": "^1.1.0" "minato": "^1.2.1"
}, },
"engines": { "engines": {
"node": ">=12.0.0" "node": ">=12.0.0"
...@@ -2621,9 +2621,9 @@ ...@@ -2621,9 +2621,9 @@
"peer": true "peer": true
}, },
"node_modules/cordis": { "node_modules/cordis": {
"version": "1.3.3", "version": "1.5.5",
"resolved": "https://registry.npmjs.org/cordis/-/cordis-1.3.3.tgz", "resolved": "https://registry.npmjs.org/cordis/-/cordis-1.5.5.tgz",
"integrity": "sha512-mpyBWAEVYX8/YHoGWIqaOjrOk6DmtrOWZfsBSinNR+nDBlB39Ks6aC1B5oZ7AdnVoRE2ZYBCGecoHrlxcRxd6w==", "integrity": "sha512-vCw6FA+OLO5e40so5XjhRnIw1ldGH1L74q/wlnuckqFtIq8teYkfnnmlNTS24RJNcgPz2DWdbVgCnoc+5Lc+UQ==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"cosmokit": "^1.1.2" "cosmokit": "^1.1.2"
...@@ -5251,13 +5251,13 @@ ...@@ -5251,13 +5251,13 @@
} }
}, },
"node_modules/koishi": { "node_modules/koishi": {
"version": "4.7.4", "version": "4.7.5",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.4.tgz", "resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.5.tgz",
"integrity": "sha512-VVHf3TyFsTuKrB8IZffxwmwiGx+zyhDo+DNNEFQjvomgqFdGEceAnLxNIf10K48aB1CDmkmi37b6uaURi4Z1Hw==", "integrity": "sha512-Q+czD5hZIsikYwdoKUOZFZIuvXoamikXK6iX4FXnHUPsoXX16PjqX3D1sBKd9JLVMA49KSAGoFW0fN9IMHykYw==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"@koa/router": "^10.1.1", "@koa/router": "^10.1.1",
"@koishijs/core": "^4.7.4", "@koishijs/core": "^4.7.5",
"@koishijs/utils": "^5.4.5", "@koishijs/utils": "^5.4.5",
"@types/koa": "*", "@types/koa": "*",
"@types/koa__router": "*", "@types/koa__router": "*",
...@@ -5266,7 +5266,7 @@ ...@@ -5266,7 +5266,7 @@
"file-type": "^16.5.3", "file-type": "^16.5.3",
"koa": "^2.13.4", "koa": "^2.13.4",
"koa-bodyparser": "^4.3.0", "koa-bodyparser": "^4.3.0",
"ns-require": "^1.1.2", "ns-require": "^1.1.4",
"parseurl": "^1.3.3", "parseurl": "^1.3.3",
"path-to-regexp": "^6.2.1", "path-to-regexp": "^6.2.1",
"portfinder": "^1.0.28", "portfinder": "^1.0.28",
...@@ -5516,13 +5516,13 @@ ...@@ -5516,13 +5516,13 @@
} }
}, },
"node_modules/minato": { "node_modules/minato": {
"version": "1.1.0", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/minato/-/minato-1.1.0.tgz", "resolved": "https://registry.npmjs.org/minato/-/minato-1.2.1.tgz",
"integrity": "sha512-by1KMWxWlzq0iDV7tMkqS3thDRzYNQoS2ECfX5HRpMGaPQJqSgm5aY9IAky7knwAMoW3cMxQ/IhpvEShQqyj6A==", "integrity": "sha512-BYY18rr82aXAAVtMKkN4yDFsTUtsAmeDmyTRVOXG3mEzG74sNF5TU1nVT1QSC9dpvAcCFFs/vZO2rJoC8vSetQ==",
"peer": true, "peer": true,
"dependencies": { "dependencies": {
"cosmokit": "^1.1.2", "cosmokit": "^1.1.2",
"ns-require": "^1.1.2" "ns-require": "^1.1.4"
} }
}, },
"node_modules/minimatch": { "node_modules/minimatch": {
...@@ -5639,9 +5639,9 @@ ...@@ -5639,9 +5639,9 @@
} }
}, },
"node_modules/ns-require": { "node_modules/ns-require": {
"version": "1.1.2", "version": "1.1.4",
"resolved": "https://registry.npmjs.org/ns-require/-/ns-require-1.1.2.tgz", "resolved": "https://registry.npmjs.org/ns-require/-/ns-require-1.1.4.tgz",
"integrity": "sha512-GUF6I1hWDsGx1cA9FW27KIRAlkMel2UZagR39dVNPAPBgwWK1Ez0XB96WEz2OFcwHsCORI9h75dEZueHqZ/1pA==", "integrity": "sha512-Zk25pQj4u5i6DS0vaNO5aSSXewybVqqVVjz8AOxFy9DNPtmu3jlexMz6kUXLV2oB+X6iQeAnHXSzj5Qz/IeDaQ==",
"peer": true "peer": true
}, },
"node_modules/nwsapi": { "node_modules/nwsapi": {
...@@ -8582,15 +8582,15 @@ ...@@ -8582,15 +8582,15 @@
} }
}, },
"@koishijs/core": { "@koishijs/core": {
"version": "4.7.4", "version": "4.7.5",
"resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.4.tgz", "resolved": "https://registry.npmjs.org/@koishijs/core/-/core-4.7.5.tgz",
"integrity": "sha512-S4pPaO05WC0htkQVcTMTluBZv4g8sEEBJ2ItHN2zJA8syet3iKJidT+s2gYt8d2rBo0Ndlvo1gBLGLNl/Zc9yg==", "integrity": "sha512-So8tBtSTVIq8dTGs/0o92Om3bQhgYUhmzVhnYTqJbx+kW3kSowl/ORiBhJFK3GR6Dj+JyKLptsqQNE4DjZdNhw==",
"peer": true, "peer": true,
"requires": { "requires": {
"@koishijs/utils": "^5.4.5", "@koishijs/utils": "^5.4.5",
"cordis": "^1.3.3", "cordis": "^1.5.5",
"fastest-levenshtein": "^1.0.12", "fastest-levenshtein": "^1.0.12",
"minato": "^1.1.0" "minato": "^1.2.1"
} }
}, },
"@koishijs/plugin-adapter-onebot": { "@koishijs/plugin-adapter-onebot": {
...@@ -9884,9 +9884,9 @@ ...@@ -9884,9 +9884,9 @@
"peer": true "peer": true
}, },
"cordis": { "cordis": {
"version": "1.3.3", "version": "1.5.5",
"resolved": "https://registry.npmjs.org/cordis/-/cordis-1.3.3.tgz", "resolved": "https://registry.npmjs.org/cordis/-/cordis-1.5.5.tgz",
"integrity": "sha512-mpyBWAEVYX8/YHoGWIqaOjrOk6DmtrOWZfsBSinNR+nDBlB39Ks6aC1B5oZ7AdnVoRE2ZYBCGecoHrlxcRxd6w==", "integrity": "sha512-vCw6FA+OLO5e40so5XjhRnIw1ldGH1L74q/wlnuckqFtIq8teYkfnnmlNTS24RJNcgPz2DWdbVgCnoc+5Lc+UQ==",
"peer": true, "peer": true,
"requires": { "requires": {
"cosmokit": "^1.1.2" "cosmokit": "^1.1.2"
...@@ -11855,13 +11855,13 @@ ...@@ -11855,13 +11855,13 @@
} }
}, },
"koishi": { "koishi": {
"version": "4.7.4", "version": "4.7.5",
"resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.4.tgz", "resolved": "https://registry.npmjs.org/koishi/-/koishi-4.7.5.tgz",
"integrity": "sha512-VVHf3TyFsTuKrB8IZffxwmwiGx+zyhDo+DNNEFQjvomgqFdGEceAnLxNIf10K48aB1CDmkmi37b6uaURi4Z1Hw==", "integrity": "sha512-Q+czD5hZIsikYwdoKUOZFZIuvXoamikXK6iX4FXnHUPsoXX16PjqX3D1sBKd9JLVMA49KSAGoFW0fN9IMHykYw==",
"peer": true, "peer": true,
"requires": { "requires": {
"@koa/router": "^10.1.1", "@koa/router": "^10.1.1",
"@koishijs/core": "^4.7.4", "@koishijs/core": "^4.7.5",
"@koishijs/utils": "^5.4.5", "@koishijs/utils": "^5.4.5",
"@types/koa": "*", "@types/koa": "*",
"@types/koa__router": "*", "@types/koa__router": "*",
...@@ -11870,7 +11870,7 @@ ...@@ -11870,7 +11870,7 @@
"file-type": "^16.5.3", "file-type": "^16.5.3",
"koa": "^2.13.4", "koa": "^2.13.4",
"koa-bodyparser": "^4.3.0", "koa-bodyparser": "^4.3.0",
"ns-require": "^1.1.2", "ns-require": "^1.1.4",
"parseurl": "^1.3.3", "parseurl": "^1.3.3",
"path-to-regexp": "^6.2.1", "path-to-regexp": "^6.2.1",
"portfinder": "^1.0.28", "portfinder": "^1.0.28",
...@@ -12067,13 +12067,13 @@ ...@@ -12067,13 +12067,13 @@
"dev": true "dev": true
}, },
"minato": { "minato": {
"version": "1.1.0", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/minato/-/minato-1.1.0.tgz", "resolved": "https://registry.npmjs.org/minato/-/minato-1.2.1.tgz",
"integrity": "sha512-by1KMWxWlzq0iDV7tMkqS3thDRzYNQoS2ECfX5HRpMGaPQJqSgm5aY9IAky7knwAMoW3cMxQ/IhpvEShQqyj6A==", "integrity": "sha512-BYY18rr82aXAAVtMKkN4yDFsTUtsAmeDmyTRVOXG3mEzG74sNF5TU1nVT1QSC9dpvAcCFFs/vZO2rJoC8vSetQ==",
"peer": true, "peer": true,
"requires": { "requires": {
"cosmokit": "^1.1.2", "cosmokit": "^1.1.2",
"ns-require": "^1.1.2" "ns-require": "^1.1.4"
} }
}, },
"minimatch": { "minimatch": {
...@@ -12166,9 +12166,9 @@ ...@@ -12166,9 +12166,9 @@
} }
}, },
"ns-require": { "ns-require": {
"version": "1.1.2", "version": "1.1.4",
"resolved": "https://registry.npmjs.org/ns-require/-/ns-require-1.1.2.tgz", "resolved": "https://registry.npmjs.org/ns-require/-/ns-require-1.1.4.tgz",
"integrity": "sha512-GUF6I1hWDsGx1cA9FW27KIRAlkMel2UZagR39dVNPAPBgwWK1Ez0XB96WEz2OFcwHsCORI9h75dEZueHqZ/1pA==", "integrity": "sha512-Zk25pQj4u5i6DS0vaNO5aSSXewybVqqVVjz8AOxFy9DNPtmu3jlexMz6kUXLV2oB+X6iQeAnHXSzj5Qz/IeDaQ==",
"peer": true "peer": true
}, },
"nwsapi": { "nwsapi": {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
}, },
"peerDependencies": { "peerDependencies": {
"@koishijs/plugin-adapter-onebot": "^4.2.4", "@koishijs/plugin-adapter-onebot": "^4.2.4",
"koishi": "^4.7.4" "koishi": "^4.7.5"
}, },
"devDependencies": { "devDependencies": {
"@koishijs/plugin-cache-lru": "^1.0.0-rc.0", "@koishijs/plugin-cache-lru": "^1.0.0-rc.0",
......
...@@ -4,7 +4,6 @@ import { Show } from './playbook/Show'; ...@@ -4,7 +4,6 @@ import { Show } from './playbook/Show';
import { Playbook } from './playbook/Playbook'; import { Playbook } from './playbook/Playbook';
import { plainToClass } from 'class-transformer'; import { plainToClass } from 'class-transformer';
import loadJsonFile from 'load-json-file'; import loadJsonFile from 'load-json-file';
import { Selection } from 'koishi';
import type { OneBotBot } from '@koishijs/plugin-adapter-onebot'; import type { OneBotBot } from '@koishijs/plugin-adapter-onebot';
export interface PluginConfig { export interface PluginConfig {
...@@ -20,7 +19,6 @@ export class MyPlugin { ...@@ -20,7 +19,6 @@ export class MyPlugin {
name = 'act-main'; name = 'act-main';
schema: Schema<PluginConfig> = Schema.object({ schema: Schema<PluginConfig> = Schema.object({
adminContext: Schema.any().description('管理员接口作用域。'),
autoChangeName: Schema.boolean() autoChangeName: Schema.boolean()
.description('公演开始之前是否修改每个演员机器人的群名片。推荐开启。') .description('公演开始之前是否修改每个演员机器人的群名片。推荐开启。')
.default(true), .default(true),
...@@ -29,9 +27,6 @@ export class MyPlugin { ...@@ -29,9 +27,6 @@ export class MyPlugin {
'公演剧本存放路径。公演剧本的文件名是 `/path/to/playbookPathPrefix/name.json` 对应于 name 剧本。', '公演剧本存放路径。公演剧本的文件名是 `/path/to/playbookPathPrefix/name.json` 对应于 name 剧本。',
) )
.default('./playbooks'), .default('./playbooks'),
dropHelp: Schema.boolean()
.description('是否删除 `help` 命令,避免社死 (?)')
.default(false),
}); });
apply(ctx: Context, config: PluginConfig) { apply(ctx: Context, config: PluginConfig) {
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