kokkoro-plugin-hitokoto 1.1.0 → 1.2.0

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -23,7 +23,7 @@ plugin
23
23
  const uin = uins[i];
24
24
  const info = bot.gl.get(uin);
25
25
  const { group_id } = info;
26
- const { apply, auto_send } = bot.getOption(group_id, 'hitokoto');
26
+ const { apply, auto_send } = bot.profile.getOption(group_id, 'hitokoto');
27
27
  if (apply && auto_send) {
28
28
  sendQueue.push(bot.sendGroupMsg(group_id, hitokoto));
29
29
  }
@@ -37,5 +37,5 @@ plugin
37
37
  .sugar(/^(来|说)(点|句|段)骚话$/)
38
38
  .action(async (ctx) => {
39
39
  const hitokoto = await service.getHitokoto(ctx.option?.param ?? option.param);
40
- ctx.reply(hitokoto);
40
+ await ctx.reply(hitokoto);
41
41
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kokkoro-plugin-hitokoto",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "ヒトコト",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -21,11 +21,11 @@
21
21
  },
22
22
  "homepage": "https://github.com/kokkorojs/kokkoro-plugin-hitokoto#readme",
23
23
  "devDependencies": {
24
- "@types/node": "^18.11.13",
25
- "axios": "^1.2.1",
26
- "kokkoro": "^1.2.5"
24
+ "@types/node": "^18.11.19",
25
+ "axios": "^1.3.2",
26
+ "kokkoro": "^2.0.0-alpha.1"
27
27
  },
28
28
  "files": [
29
29
  "lib"
30
30
  ]
31
- }
31
+ }