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 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
  // 数据库
@@ -11,7 +11,6 @@ class User {
11
11
  this.magic = 0;
12
12
  this.name = '';
13
13
  this.qq = qq;
14
- this.lastChatTime = new Date().getTime();
15
14
  this.name = name;
16
15
  }
17
16
  }
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Context, Schema } from 'koishi';
2
2
  import { DatabaseRow } from './function/interface';
3
+ export declare const inject: string[];
3
4
  export declare const name = "toram";
4
5
  declare module 'koishi' {
5
6
  interface Tables {
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.1'; // 插件当前版本
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' });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-toram",
3
3
  "description": "托拉姆物语小工具",
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "contributors": [
6
6
  "青灯 <1874053520@qq.com>"
7
7
  ],