koishijs / koishi

Cross-platform chatbot framework made with love
https://koishi.chat
MIT License
4.37k stars 239 forks source link

Bug: koishi v4.14.5 cannot reply messages to me in the sandbox #1196

Closed initialencounter closed 1 year ago

initialencounter commented 1 year ago

Describe the bug

koishi v4.14.5 沙盒无法回复消息

Steps to reproduce

koishi 更新到 4.14.5 版本,在沙盒发送 echo 123 或者 help

Expected behavior

回复消息

Screenshots

image image

2023-09-10 18:36:18 [W] session echo 123
                        TypeError: Cannot read properties of undefined (reading 'slice')
                            at get stripped [as stripped] (D:\dev\koimux_bot\node_modules\@koishijs\core\lib\index.cjs:2066:36)
                            at get parsed [as parsed] (D:\dev\koimux_bot\node_modules\@koishijs\core\lib\index.cjs:2057:17)
                            at _Session.<anonymous> (D:\dev\koimux_bot\node_modules\@koishijs\core\lib\index.cjs:1831:29) 
                            at _Lifecycle.emit (D:\dev\koimux_bot\node_modules\cordis\lib\index.cjs:105:16)
                            at _Context.emit (D:\dev\koimux_bot\node_modules\cordis\lib\index.cjs:650:31)
                            at _Processor._process (D:\dev\koimux_bot\node_modules\@koishijs\core\lib\index.cjs:798:14)   
                            at next (D:\dev\koimux_bot\node_modules\@koishijs\core\lib\index.cjs:844:69)
                            at _Processor._handleMessage (D:\dev\koimux_bot\node_modules\@koishijs\core\lib\index.cjs:855:28)
                            at _Lifecycle.emit (D:\dev\koimux_bot\node_modules\cordis\lib\index.cjs:105:16)
                            at _Context.emit (D:\dev\koimux_bot\node_modules\cordis\lib\index.cjs:650:31)

image

Versions

Additional context

koishi v4.14.5, sandbox v3.1.12 和 v3.1.11 都会触发该bug; koishi v4.14.4不会触发该bug

shigma commented 1 year ago

沙盒以外的环境正常吗?

initialencounter commented 1 year ago

谢谢你!  Thank you!

shigma commented 1 year ago

已修复。更新 sandbox 插件即可。

initialencounter commented 1 year ago

onebot是正常的,其他平台没试过