Commit 6a5b5308 authored by nanahira's avatar nanahira

readme

parent a43a82ff
Pipeline #6081 passed with stages
in 37 seconds
......@@ -22,10 +22,10 @@ npm install koishi-plugin-act
module.exports = {
plugins: {
"/path/to/act/index.js": {
adminContext: (ctx) => ctx.private(),
autoChangeName: true,
dropHelp: false,
playbookPathPrefix: './playbooks'
adminContext: { $private: true },
autoChangeName: true,
dropHelp: false,
playbookPathPrefix: './playbooks'
}
}
}
......@@ -35,7 +35,7 @@ module.exports = {
```ts
export interface Config {
adminContext: (ctx: Context) => Context;
adminContext: Selection;
autoChangeName: boolean;
dropHelp: boolean;
playbookPathPrefix: string;
......
{
"name": "koishi-plugin-act",
"version": "2.0.0",
"version": "2.0.1",
"description": "A plugin playing acts in QQ groups",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
......
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