koishi-plugin-toram 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aoandou.js +1 -0
- package/lib/function/classes.js +0 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -2
- package/package.json +1 -1
package/lib/aoandou.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.apply = exports.name = void 0;
|
|
|
4
4
|
const functions_1 = require("./functions");
|
|
5
5
|
exports.name = 'aoandou';
|
|
6
6
|
async function apply(ctx, config) {
|
|
7
|
+
const logger = ctx.logger('aoandou');
|
|
7
8
|
const helpList = { '帮助': 'help', '菜单': 'menu', '指令': 'command', '料理': 'dishes', '升级': 'levelUP', '练宠': 'levelUP_pet', '更新': 'update' };
|
|
8
9
|
const menuTemp = { '昵称': 'name', '权限等级': 'authority', '魔能': 'magic' };
|
|
9
10
|
// 数据库
|
package/lib/function/classes.js
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -23,10 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.apply = exports.Config = exports.name = void 0;
|
|
26
|
+
exports.apply = exports.Config = exports.name = exports.inject = void 0;
|
|
27
27
|
const koishi_1 = require("koishi");
|
|
28
28
|
const aonodou = __importStar(require("./aoandou"));
|
|
29
29
|
const functions_1 = require("./functions");
|
|
30
|
+
exports.inject = ['database'];
|
|
30
31
|
exports.name = 'toram';
|
|
31
32
|
exports.Config = koishi_1.Schema.intersect([
|
|
32
33
|
koishi_1.Schema.object({
|
|
@@ -71,7 +72,7 @@ async function apply(ctx, config) {
|
|
|
71
72
|
}, {
|
|
72
73
|
primary: 'id'
|
|
73
74
|
});
|
|
74
|
-
const pluginVersion = '1.0.
|
|
75
|
+
const pluginVersion = '1.0.2'; // 插件当前版本
|
|
75
76
|
// 更新数据库指令
|
|
76
77
|
ctx.command('updateDatabase').action(async ({ session }) => {
|
|
77
78
|
let version = await ctx.database.get('toram', { database: 'data_version' });
|