Commit 74807fb4 authored by nanahira's avatar nanahira

catchup

parent 0fdfed87
This diff is collapsed.
......@@ -5,15 +5,15 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"dependencies": {
"source-map-support": "^0.5.19",
"class-transformer": "^0.4.0",
"delay": "^5.0.0",
"load-json-file": "^6.2.0",
"lodash": "^4.17.21",
"moment": "^2.29.1",
"mustache": "^4.2.0",
"prettier": "^2.3.2",
"reflect-metadata": "^0.1.13",
"delay": "^5.0.0",
"load-json-file": "^6.2.0",
"class-transformer": "^0.4.0"
"source-map-support": "^0.5.19"
},
"peerDependencies": {
"@koishijs/plugin-adapter-onebot": "^4.0.0-beta.1",
......@@ -29,9 +29,9 @@
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"koishi": "^4.0.0-beta.1",
"ts-loader": "^9.2.5",
"koishi": "^4.0.0-beta.2",
"raw-loader": "^4.0.2",
"ts-loader": "^9.2.5",
"typescript": "^4.3.5",
"webpack": "^5.48.0",
"webpack-cli": "^4.9.1"
......
......@@ -27,7 +27,7 @@ export interface Selection extends BaseSelection {
}
export interface Config {
adminContext: Selection;
adminContext?: Selection;
autoChangeName?: boolean;
dropHelp?: boolean;
playbookPathPrefix?: string;
......@@ -54,7 +54,7 @@ export class MyPlugin {
});
apply(ctx: Context, config: Config) {
this.ctx = ctx;
this.config = Schema.validate(config, this.schema);
this.config = config;
if (this.config.dropHelp) {
ctx.command('help').dispose();
}
......
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