最新版koishi不能将回复内容自动加入指令的最后一个参数了

启动时会报错如下,不知道有没有关系
2023-10-06 15:21:43 [W] app TypeError: Cannot read properties of undefined (reading ‘status’)
at get status [as status] (C:\deve\koishi-app\node_modules@satorijs\adapter-onebot\lib\index.js:935:24)
at pick (C:\deve\koishi-app\node_modules\cosmokit\lib\index.cjs:115:27)
at _QQGuildBot.toJSON (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:380:38)
at _QQGuildBot.dispatchLoginEvent (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:282:32)
at C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:255:12
at C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:62:34
at _ForkScope.ensure (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:268:18)
at _Lifecycle. (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:62:15)
at _Lifecycle.bail (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:121:31)
at _Lifecycle.on (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:145:25)
2023-10-06 15:21:43 [W] app TypeError: Cannot read properties of undefined (reading ‘stop’)
at _Session. (C:\deve\koishi-app\node_modules@koishijs\plugin-status\lib\index.js:185:24)
at _Lifecycle.emit (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:105:16)
at _Context.emit (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:650:31)
at _QQGuildBot.dispatch (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:358:20)
at _QQGuildBot.dispatchLoginEvent (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:283:10)
at _QQGuildBot.dispose (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:276:10) at event (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:258:34)
at C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:306:7
at Array.filter ()
at _ForkScope.reset (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:303:51)
2023-10-06 15:21:45 [I] rr-su-chat start:FCFEYXC2OH6L8MVP7J
2023-10-06 15:21:45 [I] rr-su-chat 私聊增强,已启用
2023-10-06 15:21:48 [W] app TypeError: Cannot read properties of undefined (reading ‘status’)
at get status [as status] (C:\deve\koishi-app\node_modules@satorijs\adapter-onebot\lib\index.js:935:24)
at pick (C:\deve\koishi-app\node_modules\cosmokit\lib\index.cjs:115:27)
at _QQGuildBot.toJSON (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:380:38)
at _QQGuildBot.dispatchLoginEvent (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:282:32)
at C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:255:12
at C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:62:34
at _ForkScope.ensure (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:268:18)
at _Lifecycle. (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:62:15)
at _Lifecycle.bail (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:121:31)
at _Lifecycle.on (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:145:25)
2023-10-06 15:21:48 [W] app TypeError: Cannot read properties of undefined (reading ‘stop’)
at _Session. (C:\deve\koishi-app\node_modules@koishijs\plugin-status\lib\index.js:185:24)
at _Lifecycle.emit (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:105:16)
at _Context.emit (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:650:31)
at _QQGuildBot.dispatch (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:358:20)
at _QQGuildBot.dispatchLoginEvent (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:283:10)
at _QQGuildBot.dispose (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:276:10) at event (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:258:34)
at C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:306:7
at Array.filter ()
at _ForkScope.reset (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:303:51)
2023-10-06 15:21:48 [W] app TypeError: Cannot read properties of undefined (reading ‘status’)
at get status [as status] (C:\deve\koishi-app\node_modules@satorijs\adapter-onebot\lib\index.js:935:24)
at pick (C:\deve\koishi-app\node_modules\cosmokit\lib\index.cjs:115:27)
at _QQGuildBot.toJSON (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:380:38)
at _QQGuildBot.dispatchLoginEvent (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:282:32)
at C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:255:12
at C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:62:34
at _ForkScope.ensure (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:268:18)
at _Lifecycle. (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:62:15)
at _Lifecycle.bail (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:121:31)
at _Lifecycle.on (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:145:25)
2023-10-06 15:21:48 [W] app TypeError: Cannot read properties of undefined (reading ‘stop’)
at _Session. (C:\deve\koishi-app\node_modules@koishijs\plugin-status\lib\index.js:185:24)
at _Lifecycle.emit (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:105:16)
at _Context.emit (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:650:31)
at _QQGuildBot.dispatch (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:358:20)
at _QQGuildBot.dispatchLoginEvent (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:283:10)
at _QQGuildBot.dispose (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:276:10) at event (C:\deve\koishi-app\node_modules@satorijs\core\lib\index.cjs:258:34)
at C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:306:7
at Array.filter ()
at _ForkScope.reset (C:\deve\koishi-app\node_modules\cordis\lib\index.cjs:303:51)

2 个赞

Vous pouvez utiliser la syntaxe du bloc de code pour envelopper votre journal de la même manière que vous le feriez avec Markdown, ce qui le rendrait plus facile à lire.

(翻译自 ChatGPT)

您可以使用代码块语法来包裹您的日志,就像您在Markdown中所做的那样,这样会更容易阅读。

2 个赞

看了下可能是 onebot 插件的 bug,我之后修复一下。

4 个赞

这是自带颅内 logger format 吗,好强

2 个赞

请问是onebot的问题吗?还是我这边的问题

1 个赞

是 onebot 的问题。

但是由于没开 issue 我之前已经把这事给忘了。昨天我想起来 onebot 好像还有个 bug 没修,点开论坛翻了半天也没找到这个帖子,然后就没管了。

2 个赞
  1. 卸载 @koishijs/plugin-adapter-onebot(已废弃)
  2. 小火箭
  3. 安装 koishi-plugin-adapter-onebot

看看问题是不是修好了。

1 个赞



我按照上面的步骤更新了,启动新插件时这样,配置项页面是空白的


添加插件的地方也有个bug,会只显示20个插件,本应是89个,我刚才自己改yml不知道为什么变回89了,重启后又变成20

1 个赞

这个应该是新插件的 bug

这个是远古 bug 了,右键刷新即可

2 个赞

少打了一个依赖,再更新看看。

1 个赞

更新后配置项页面还是空白


但我尝试新建一个实例,能看见配置项

现在我用新建的实例成功连接了,但是原来的bug没有修复,目前仍然存在引用内容不加最后一个参数上、合并转发消息里不能正确显示某qq的头像、bot.getMessage报错等问题

1 个赞

不要在 Koishi 的反馈里混进 QQ 自己下线的功能啊

1 个赞

引用内容不加最后一个参数上的bug还会修吗

2 个赞

这个很快就会修

1 个赞

image

很快我就发现了这个无法复现。

1 个赞

图片也是正常的,推测是你所使用的适配器的问题。

1 个赞

我用的是onebot,你能试试这个吗

1 个赞

我没有测试 onebot 的环境,并且 onebot 已经不是官方适配器了,我不会积极维护。

2 个赞