You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-08-08 16:44:41 [I] hmr reload plugin at external\dst-test\src\index.ts
2024-08-08 16:44:41 [E] app TypeError: Cannot read properties of null (reading 'name')
at Command._registerAlias (E:\Github\Koishi\koishi-app\node_modules\@koishijs\core\src\command\command.ts:103:50)
at Command.alias (E:\Github\Koishi\koishi-app\node_modules\@koishijs\core\src\command\command.ts:142:12)
at Object.apply (e:\Github\Koishi\koishi-app\external\dst-test\src\index.ts:14:4)
at MainScope.apply (E:\Github\Koishi\koishi-app\node_modules\@cordisjs\core\src\scope.ts:356:26)
at <anonymous> (E:\Github\Koishi\koishi-app\node_modules\@cordisjs\core\src\scope.ts:383:49)
at MainScope.ensure (E:\Github\Koishi\koishi-app\node_modules\@cordisjs\core\src\scope.ts:150:18)
at MainScope.start (E:\Github\Koishi\koishi-app\node_modules\@cordisjs\core\src\scope.ts:383:12)
at MainScope.init (E:\Github\Koishi\koishi-app\node_modules\@cordisjs\core\src\scope.ts:189:12)
at MainScope (E:\Github\Koishi\koishi-app\node_modules\@cordisjs\core\src\scope.ts:321:12)
at Proxy.plugin (E:\Github\Koishi\koishi-app\node_modules\@cordisjs\core\src\registry.ts:188:15)
Versions
OS: Windows 11 10.0.22631
Platform: 沙盒
Node version: 18.20.0
Koishi version: 4.17.10
System:
OS: Windows 11 10.0.22631
CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-1340P
Describe the bug
我写的插件是:https://github.com/ChengTu-Lazy/koishi-plugin-dst-search
其中一个指令是 [.] 或者 [。]
用alias注册指令时就报错了
Steps to reproduce
Expected behavior
按例子来说,不用alias直接用我注释掉的shrtcut的话,输入.1应当回复test1
但实际上这样的写法会直接报错
Screenshots
Versions
System:
OS: Windows 11 10.0.22631
CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-1340P
Binaries:
Node: 18.20.0
Yarn: 4.1.1
Koishi:
Core: 4.17.10
Console: 5.29.3
Additional context
我有看到文档说如果用户加载的多个插件都注册了同一个指令别名,那么后一个加载的插件将直接加载失败。
实际上shortcut的正则匹配可以实现我的需求,但是它要被alias替换了,以后某个版本可能就用不了了
The text was updated successfully, but these errors were encountered: