koishi-plugin-teach
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -5,2 +5,3 @@ import { Context } from 'koishi-core'; | ||
export { TeachConfig }; | ||
export declare const name = "teach"; | ||
export declare function apply(ctx: Context, config?: TeachConfig): void; |
@@ -16,5 +16,6 @@ "use strict"; | ||
__export(require("./database")); | ||
exports.name = 'teach'; | ||
function apply(ctx, config = {}) { | ||
ctx.plugin(receiver_1.default, config); | ||
const command = ctx.command('teach <question> <answer>', '教四季酱说话', { authority: 2, checkUnknown: true, ...config }) | ||
const command = ctx.command('teach <question> <answer>', '添加教学对话', { authority: 2, checkUnknown: true, ...config }) | ||
.alias('教学') | ||
@@ -21,0 +22,0 @@ .shortcut('教学信息', { options: { info: true } }) |
{ | ||
"name": "koishi-plugin-teach", | ||
"description": "Teach plugin for Koishi", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"main": "dist/index.js", | ||
@@ -34,9 +34,10 @@ "typings": "dist/index.d.ts", | ||
"devDependencies": { | ||
"koishi-database-level": "^1.0.3", | ||
"koishi-database-mysql": "^1.0.3" | ||
"koishi-database-level": "^1.0.5", | ||
"koishi-database-mysql": "^1.0.5", | ||
"koishi-test-utils": "^1.2.1" | ||
}, | ||
"dependencies": { | ||
"koishi-core": "^1.1.1", | ||
"koishi-core": "^1.3.1", | ||
"koishi-utils": "^1.0.2" | ||
} | ||
} |
@@ -1,4 +0,4 @@ | ||
# [koishi-plugin-teach](https://koishijs.github.io/plugins/teach.html) | ||
# [koishi-plugin-teach](https://koishi.js.org/plugins/teach.html) | ||
[](https://www.npmjs.com/package/koishi-plugin-teach) | ||
@@ -12,6 +12,8 @@ import { Context } from 'koishi-core' | ||
export const name = 'teach' | ||
export function apply (ctx: Context, config: TeachConfig = {}) { | ||
ctx.plugin(receiver, config) | ||
const command = ctx.command('teach <question> <answer>', '教四季酱说话', { authority: 2, checkUnknown: true, ...config }) | ||
const command = ctx.command('teach <question> <answer>', '添加教学对话', { authority: 2, checkUnknown: true, ...config }) | ||
.alias('教学') | ||
@@ -18,0 +20,0 @@ .shortcut('教学信息', { options: { info: true } }) |
Sorry, the diff of this file is not supported yet
1309
206386
3
Updatedkoishi-core@^1.3.1