kabuda-czh / koishi-plugin-kbot Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
感觉会有用
这是一个发生过好几次的问题,曾经有一次我在koishi后台发现了kbot报错的日志,似乎是b站订阅功能导致的某种循环报错(太久远了,没存截图)
那次出现这个问题的时候bot卡顿了很长一段时间,就此我怀疑KBotBilibili功能存在某种死循环bug导致服务器死机。
当我不启用KBotBilibili功能时服务器基本正常,最近又启用这个功能,已经发生过好几次服务器死机问题了。
但是最近几次服务器死机都没找到相关日志,我只能直接来问了。
[CQ:image,file=https://file.alapi.cn/60s/202307181689616803.png,cache=0]
沙盒中正常使用
koishi版本4.16.6
kbot为最新版
获取除北京上海天气时提示发生未知错误
北京与上海则正常
command 天气 成都
TypeError: Cannot read properties of null (reading 'name')
at E:\360MoveData\Users\DELL\Desktop\update\koishi\data\instances\default\node_modules\koishi-plugin-kbot\lib\basic\index.js:122:58
at Array.map ()
at _Command. (E:\360MoveData\Users\DELL\Desktop\update\koishi\data\instances\default\node_modules\koishi-plugin-kbot\lib\basic\index.js:122:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Array. (E:\360MoveData\Users\DELL\Desktop\update\koishi\data\instances\default\node_modules@koishijs\core\lib\index.cjs:1189:14)
at async _Command.execute (E:\360MoveData\Users\DELL\Desktop\update\koishi\data\instances\default\node_modules@koishijs\core\lib\index.cjs:1204:22)
at async E:\360MoveData\Users\DELL\Desktop\update\koishi\data\instances\default\node_modules@koishijs\core\lib\index.cjs:2235:22
at async Proxy.withScope (E:\360MoveData\Users\DELL\Desktop\update\koishi\data\instances\default\node_modules@koishijs\core\lib\index.cjs:2137:22)
at async next (E:\360MoveData\Users\DELL\Desktop\update\koishi\data\instances\default\node_modules@koishijs\core\lib\index.cjs:921:16)
at async next (E:\360MoveData\Users\DELL\Desktop\update\koishi\data\instances\default\node_modules@koishijs\core\lib\index.cjs:921:16)
2023-12-01 10:02:13 [I] loader apply plugin kbot:k6b079
2023-12-01 10:02:13 [E] KBot 未找到 kbot-data 文件夹, 正在创建
2023-12-01 10:02:27 [I] loader reload plugin kbot:k6b079
2023-12-01 10:02:34 [I] loader reload plugin kbot:k6b079
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [W] app Error: property router is not registered, declare it as `inject` to suppress this warning
at checkInject (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:796:36)
at Object.get (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:813:9)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:88:17
at Array.forEach (<anonymous>)
at Object.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\koishi-plugin-kbot\lib\plugins\guildManage\index.js:87:44)
at _MainScope.apply (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:493:26)
at C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:36
at _MainScope.ensure (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:272:18)
at _MainScope.start (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:517:12)
at _MainScope.init (C:\Users\Administrator\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:319:12)
2023-12-01 10:02:53 [S] KBot KBot 内置插件加载完毕
使用插件其他功能也会循环,虽然不会影响使用但是看着很难受....
后台也没有报错
本来是可以用的,但是大概一周后突然今天晚上报cookie 失效要重新设置,我通过浏览器重新登陆了账号,清楚缓存后重新刷新,任选了一个请求其中的cookie 字段,将拿到的cookie,使用命令twitter --ck
成功更新cookie。完事儿后后台仍报错cookie 失效。没其他详细报错
请问这个可能是什么问题导致的?是否Twitter 改变了cookie 验证方式什么的?
我应该如何做解决这个问题,使其可以正常推送推文
感谢您百忙中抽出时间解答,谢谢!
配置cookie需要的格式和字段,我在说明文档里翻了几遍都没看到,不知道如何配置。
有比较详细的说明吗?
![Screenshot_20240107_102503_edit_302822870492346.jpg](https://g![Screenshot_20240107_102454.jpg](https://github.com/Kabuda-czh/koishi-plugin-kbot/assets/141598320/dd5f4b69-c7c0-44a2-bf60-918ccd27d6aa)
ets/141598320/e7be94e5-53bd-4dd2-98c8-421230f6f11e)
我已经填写了cookie,目前bilibili -s
和bilibili -d
都能正常使用,所以cookie应该填的没问题,但是在使用bilibili -v时会报错cookie信息未找到, 请使用 --ck 或 --cookie 更新cookie信息
。
2023-05-08 18:06:12 [I] app Koishi/4.12.8
2023-05-08 18:06:12 [I] app apply plugin group:entry
2023-05-08 18:06:12 [I] app apply plugin group:basic
2023-05-08 18:06:12 [I] app apply plugin commands
2023-05-08 18:06:12 [I] app apply plugin admin
2023-05-08 18:06:12 [I] app apply plugin inspect
2023-05-08 18:06:12 [I] app apply plugin help
2023-05-08 18:06:12 [I] app apply plugin locales
2023-05-08 18:06:12 [I] app apply plugin rate-limit
2023-05-08 18:06:12 [I] app apply plugin group:console
2023-05-08 18:06:12 [I] app apply plugin console
2023-05-08 18:06:12 [I] app apply plugin dataview
2023-05-08 18:06:12 [I] app apply plugin logger
2023-05-08 18:06:12 [I] app apply plugin insight
2023-05-08 18:06:12 [I] app apply plugin sandbox
2023-05-08 18:06:12 [I] app apply plugin market
2023-05-08 18:06:12 [I] app apply plugin group:storage
2023-05-08 18:06:12 [I] app apply plugin database-sqlite
2023-05-08 18:06:12 [I] app apply plugin group:adapter
2023-05-08 18:06:12 [I] app apply plugin gocqhttp
2023-05-08 18:06:12 [I] app apply plugin adapter-onebot
2023-05-08 18:06:13 [I] app apply plugin rryth:efcbu1
2023-05-08 18:06:13 [I] app apply plugin qdvc:bin3c4
2023-05-08 18:06:13 [I] app apply plugin rr-translator:tt0wm5
2023-05-08 18:06:13 [I] app apply plugin callme:liseu5
2023-05-08 18:06:13 [I] app apply plugin blockly:d716vk
2023-05-08 18:06:13 [I] app apply plugin kbot:amguzk
2023-05-08 18:06:13 [I] app apply plugin echo:v7kotm
2023-05-08 18:06:14 [I] app apply plugin messages:rhyozy
2023-05-08 18:06:14 [I] assets missing config "selfUrl", fallback to "file:" scheme
2023-05-08 18:06:14 [I] app apply plugin send-as-image:ntmhqi
2023-05-08 18:06:12 [I] app apply plugin puppeteer:lexhpf
2023-05-08 18:06:14 [I] app server listening at http://127.0.0.1:5140
2023-05-08 18:06:12 [I] app apply plugin status
2023-05-08 18:06:12 [I] app apply plugin assets-local
2023-05-08 18:06:12 [I] app apply plugin analytics
2023-05-08 18:06:14 [I] puppeteer chrome executable found at /bin/chromium
2023-05-08 18:06:14 [I] locales loading locale zh.yml
2023-05-08 18:06:15 [I] blockly Loaded 7 plugin(s)
2023-05-08 18:06:15 [I] blockly Loading 7 plugin(s)
2023-05-08 18:06:15 [S] KBot KBot 内置插件加载完毕
2023-05-08 18:06:15 [I] gocqhttp o-cqhttp v1.0.1 © 2020 - 2023 Mrs4s�[2023-05-08 18:06:15] [INFO]: 当前版本:v1.0.1
2023-05-08 18:06:15 [W] gocqhttp Protocol -> device lock is disable. http api may fail.
2023-05-08 18:06:22 [W] market timeout of 5000ms exceeded
2023-05-08 18:06:31 [W] command body
TypeError: Cannot read properties of undefined (reading 'model')
at getCPUUsage (/home/koishi-app/node_modules/koishi-plugin-kbot/lib/basic/status/utils/index.js:188:48)
at async Promise.all (index 0)
at async getSystemInfo (/home/koishi-app/node_modules/koishi-plugin-kbot/lib/basic/status/utils/index.js:46:25)
at async _Command. (/home/koishi-app/node_modules/koishi-plugin-kbot/lib/basic/status/index.js:27:28)
at async Array. (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1681:14)
at async _Command.execute (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1696:22)
at async /home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2266:22
at async Session2.withScope (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2140:14)
at async render (/home/koishi-app/node_modules/@satorijs/core/lib/index.cjs:73:22)
at async /home/koishi-app/node_modules/@satorijs/element/lib/index.cjs:320:22
指令:.bilibili -a 6524821
bot消息提示:请求失败,请检查 uid 是否正确或重试获取 6524821 信息失败: [[object Object]]
koishi日志:
KBot-bilibili-dynamic Error: 获取 6524821 信息失败: [[object Object]]
at fetchUserInfo (/opt/koishi/koishi-app/node_modules/koishi-plugin-kbot/lib/plugins/bilibili/dynamic/common.js:21:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.bilibiliAdd [as add] (/opt/koishi/koishi-app/node_modules/koishi-plugin-kbot/lib/plugins/bilibili/dynamic/common.js:28:26)
at async Array.<anonymous> (/opt/koishi/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1682:14)
at async _Command.execute (/opt/koishi/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1697:22)
at async /opt/koishi/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2267:22
at async Session2.withScope (/opt/koishi/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2141:14)
at async next (/opt/koishi/koishi-app/node_modules/@koishijs/core/lib/index.cjs:887:16)
at async next (/opt/koishi/koishi-app/node_modules/@koishijs/core/lib/index.cjs:887:16)
at async next (/opt/koishi/koishi-app/node_modules/@koishijs/core/lib/index.cjs:887:16)
这一行的链接写错了,应该是danmakus而不是danmukus。
这几天很多地方都大风大雨的,查询都是多云晴天
希望在推送 转发动态:加个换行,看着舒服点,如果在加个显示时间就更好了
qq官方机器人不能推送链接,能否加一个推送中是否添加链接的开关
输入帮助 bilibili
后,返回
指令:bilibili
Bilibili 相关功能
最低权限: 2 级
可用的选项有:
-a, --add <upInfo> 添加订阅, 请输入要添加的 up 主的 uid 或者 名字
-r, --remove <upInfo> 移除订阅, 请输入要移除的 up 主的 uid 或者 名字
-s, --search <upInfo> 查看最新动态, 请输入要查看动态的 up 主的 uid 或者 名字
-l, --list 展示当前订阅 up 主列表
-v, --vup <upInfo> 查成分, 请输入要查看成分的 up 主的 uid 或者 名字
-d, --danmu <upInfo> 查弹幕, 请输入要查看弹幕的 up 主的 uid 或者 名字
--re, --refresh 更新 vup
--ck, --cookie <cookie> 更新 cookie
使用示例:
使用方法: bilibili -a 123456 或者 bilibili -a 名字
但是根据我的实验,似乎upInfo只能是uid,输入名字的话会返回Failed to search user.AxiosError: Request failed with status code 412
,控制台没什么报错。
遇到过两次了,我没搞清楚是为啥。
最近一次是我在启用@dingyi222666/chathub-poe-adapter插件的时候启用失败了,然后kbot开始报下边这个错,然后无限重启koishi。控制台除了这个错没其他的错。删除了C:\Users\15446\koishi-bot\koishi-app13\data\assets\kbot
文件夹后能正常打开koishi了。
如果其他插件没出问题的话,kbot不会报这个错,不过偶尔就是会遇到其他插件出问题了。
2023-06-02 21:43:49 [S] KBot KBot 内置插件加载完毕
2023-06-02 21:43:49 [W] app Error: EEXIST: file already exists, mkdir 'C:\Users\15446\koishi-bot\koishi-app13\data\assets\kbot'
2023-06-02 21:43:49 [E] app Error: EEXIST: file already exists, mkdir 'C:\Users\15446\koishi-bot\koishi-app13\data\assets\kbot'
twitter
和 bilibili
订阅每次只能添加一个用户,想要在群内一次添加大量用户就会造成刷屏。
建议 twitter
和 bilibili
模块各增加一个功能:可以批量添加用户。
例如:
# 订阅 twitterId 为 <userId1>, <userId2>, <userId3> 的博主
twitter -b <userId1>,<userId2>,<userId3>
# 订阅 uid 为 <userId1>, <userId2>, <userId3> 的up主
bilibili -b <userId1>,<userId2>,<userId3>
现在可以通过歌曲名进行点歌,那么是否可以通过歌曲对应的码来点歌呢
分享天音かなた的单曲《別世界》: http://163cn.tv/0Yy0B4 (来自@网易云音乐)里的0Yy0B4 可以直接找到对应的歌
不用图片模式倒是可以正常使用,但是QQ公域机器人却没办法不会转发文字,只会把图片转发过来,并且尝试获取最新推文的时候会不断重复创建一个没有名字的文件夹....puppeteer正常工作,其他插件也能正常渲染
2024-04-29 15:56:41 [W] app Error: ENOENT: no such file or directory, mkdir '' 2024-04-29 15:57:03 [W] command dynamic.xlastest cps_niconico Error: Protocol error: Connection closed. Most likely the page has been closed. at assert (/home/koishi/node_modules/puppeteer-core/lib/cjs/puppeteer/util/assert.js:18:15) at CdpPage.close (/home/koishi/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Page.js:864:32) at getLatestTweet (/home/koishi/node_modules/koishi-plugin-dynamic-push-bot/lib/twitter/plugin/getLastestDynamic.js:62:20) at async Command.<anonymous> (/home/koishi/node_modules/koishi-plugin-dynamic-push-bot/lib/twitter/plugin/getLastestDynamic.js:25:21) at async Array.<anonymous> (/home/koishi/node_modules/@koishijs/core/lib/index.cjs:1149:14) at async Command.execute (/home/koishi/node_modules/@koishijs/core/lib/index.cjs:1163:22) at async /home/koishi/node_modules/@koishijs/core/lib/index.cjs:2182:22 at async Proxy.withScope (/home/koishi/node_modules/@koishijs/core/lib/index.cjs:2085:22) at async next (/home/koishi/node_modules/@koishijs/core/lib/index.cjs:888:16) at async next (/home/koishi/node_modules/@koishijs/core/lib/index.cjs:888:16) 2024-04-29 15:57:41 [W] app Error: ENOENT: no such file or directory, mkdir '' 2024-04-29 15:58:41 [W] app Error: ENOENT: no such file or directory, mkdir '' 2024-04-29 15:59:41 [W] app Error: ENOENT: no such file or directory, mkdir ''
最后未知错误结束.....
环境是:
`System:
OS: Linux 6.5 Ubuntu 23.10 23.10 (Mantic Minotaur)
CPU: (4) x64 AMD EPYC 7542 32-Core Processor
Binaries:
Node: 20.12.2
Yarn: 4.1.1
Koishi:
Core: 4.17.5
Console: 5.28.4`
发送bilibili -d
命令时,发现所有主播的直播时长都是46万多小时。
应该是因为这一行少加了个括号。三元运算符的优先级比减号低。
单独使用ct0的时候说格式错误,使用editcookie插件直接全部导出的时候说不包含ct0.但是我看内容里是有的
1000|2023-05-04 08:14:56 [I] app reload plugin kbot:7n2t3z
1000|2023-05-04 08:14:56 [S] KBot KBot 内置插件加载完毕
1000|2023-05-04 08:14:56 [I] KBot-twitter-dynamic token 获取中...
1000|2023-05-04 08:14:56 [E] KBot-twitter-dynamic token 获取失败: TypeError: Cannot read properties of undefined (reading 'page') at getTwitterToken (koishi/data/instances/default/node_modules/koishi-plugin-kbot/lib/plugins/twitter/utils/reGetToken.js:43:36) at Object.apply (koishi/data/instances/default/node_modules/koishi-plugin-kbot/lib/plugins/twitter/dynamic/index.js:102:47)
1000|2023-05-04 08:15:09 [E] KBot-twitter-dynamic error getTwitterRestId: AxiosError: Request failed with status code 403
在初始化推特模块时出现报错,然后在使用订阅指令时提示【未获取到对应 twitter 博主 ID 信息】。我在koishi控制台未发现能够添加推特token的地方,希望解决一下
我尝试使用bilibili -s
和bilibili -v
命令,都返回cookie信息未找到, 请使用 --ck 或 --cookie 更新cookie信息
。
然后我使用Cookie-Editor插件将b站的cookie完整的导出,粘贴到public\kbot\bilibili\cookie.json
里,保存后尝试bilibili -s
和bilibili -v
命令,都返回Failed to search user.AxiosError: Request failed with status code 412
。控制台没有什么报错。
感觉可能是我cookie填的不对。想问一下cookie应该怎么添加呀?
#故障表现:
使用bilibili/twitter -s uid获取动态时,bot回复“发生未知错误”,日志中出现报错(附在下方)。
#预期行为:
bot正常返回动态图片。
#复现步骤:
1.打开kbot配置中的B站或推特订阅功能。
2.启用图片模式。
3.在沙箱/平台环境下使用bilibili/twitter -s uid获取动态
PS:复现概率似乎不是百分百,有时候能成功获取,有时候就会报错。
#相关日志:
B站动态获取时报错如下:
[W] app Error: property puppeteer is not registered, declare it as inject
to suppress this warning
at checkInject (/home/koishi-app/node_modules/cordis/lib/index.cjs:780:36)
at Object.get (/home/koishi-app/node_modules/cordis/lib/index.cjs:797:9)
at renderFunction (/home/koishi-app/node_modules/koishi-plugin-kbot/lib/plugins/bilibili/dynamic/render.js:27:21)
at Object.bilibiliSearch [as search] (/home/koishi-app/node_modules/koishi-plugin-kbot/lib/plugins/bilibili/dynamic/common.js:238:44)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Array. (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1331:14)
at async _Command.execute (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1346:22)
at async /home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2175:22
at async _Session.withScope (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2077:22)
at async next (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1053:16)
[W] app Error: property puppeteer is not registered, declare it as inject
to suppress this warning
at checkInject (/home/koishi-app/node_modules/cordis/lib/index.cjs:780:36)
at Object.get (/home/koishi-app/node_modules/cordis/lib/index.cjs:797:9)
at pcRenderImage (/home/koishi-app/node_modules/koishi-plugin-kbot/lib/plugins/bilibili/dynamic/render.js:53:26)
at async Array. (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1331:14)
at async _Command.execute (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1346:22)
at async /home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2175:22
at async _Session.withScope (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2077:22)
at async next (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1053:16)
at async next (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1053:16)
at async _Processor._handleMessage (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1064:22)
[W] command bilibili -s 8047632
Error: Cannot read properties of null (reading 'screenshot')
at coerce (/home/koishi-app/node_modules/@koishijs/utils/lib/index.cjs:90:72)
at _Command.execute (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1355:46)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2175:22
at async _Session.withScope (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2077:22)
at async next (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1053:16)
at async next (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1053:16)
at async _Processor._handleMessage (/home/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1064:22)
推特获取订阅时也有报错:
[E] KBot-twitter-dynamic 推特图片渲染失败: TypeError: Cannot read properties of null (reading 'screenshot') at renderImage (/root/koishi-app/node_modules/koishi-plugin-kbot/lib/plugins/twitter/dynamic/render.js:77:80) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Array. (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1331:14) at async _Command.execute (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1346:22) at async /root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2175:22 at async _Session.withScope (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2077:22) at async next (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1053:16) at async next (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1053:16) at async next (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1053:16) at async _Processor._handleMessage (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1064:22)
[W] command twitter -s X
Error: Cannot read properties of null (reading 'screenshot')
at coerce (/root/koishi-app/node_modules/@koishijs/utils/lib/index.cjs:90:72)
at _Command.execute (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1355:46)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2175:22
at async _Session.withScope (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:2077:22)
at async next (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1053:16)
at async next (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1053:16)
at async next (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1053:16)
at async _Processor._handleMessage (/root/koishi-app/node_modules/@koishijs/core/lib/index.cjs:1064:22)
#环境信息:
系统:Ubuntu 22.04 LTS
架构:ARM64
Node:20.8.1
NPM:10.1.0
Koishi:4.15.3
kbot版本:1.1.3-alpha.1
PS:同时,该问题也可在koishi-android上复现。
#其他信息:
body命令渲染的状态图是可以正常获取的,所以应该不是我puppeteer插件配置错误。
所有插件都是最新版。
发送bilibili -d 1
,返回弹幕获取失败: Cannot read properties of undefined (reading 'total')
,控制台报错2023-06-05 21:48:28 [E] KBot-bilibili-dynamic Failed to get danmu info. TypeError: Cannot read properties of undefined (reading 'total')
发送bilibili -v 672328094
,返回成分获取失败: cookie 信息已过期, 请使用 --ck 或 --cookie 更新cookie信息
,控制台报错2023-06-05 21:46:15 [E] KBot-bilibili-dynamic Failed to get vup info. Error: cookie 信息已过期, 请使用 --ck 或 --cookie 更新cookie信息
我说一下我是怎么填的cookie信息:
我先使用edge浏览器打开bilibili,然后打开控制台,输入document.cookie
,点击复制字符串内容
,发送bilibili --ck buvid3=60198D...
。
不知道这样填cookie可以吗,不行的话想问一下应该怎么填呀?
希望能加一个全员广播,这样订阅的信息都能发布了,然后就是群管理EMMM或许能在red里使用就好了
我的bot被风控了,如果发送的消息内容同时有图片和文字,就一定会被风控,虽然可以选择图片模式,但是链接依然是文本形式,因此我很希望可以让用户自己选择是否发送链接,或是链接和图片分开发送
能增加B站动态和直播动态的群艾特所有人功能吗?
希望能在-l里加入编号,之后再-s的时候可以调用这个编号里添加的人
在lib\plugins\bilibili\utils\toAvid.js中,有些bv号转换成的av号是会出错,例如BV124421w7SC会被转换为-397378507,这是一个负数,在api请求时会出错。
使用https://tools.jixiaob.cn/bv2av/这个工具网站,这个bv号应当被解析为1750105141,通过这个av号可以从api获取到对应视频的信息。
我看 https://www.text-to-speech.cn/ 是支持方言的,感觉很有意思,不过好像现在插件还不支持?
还有就是用的时候不知道有哪些语言和角色可以用,希望有个命令能列出来可用的语言和角色。
谢谢大佬!
日志直接提示:KBot-bilibili-dynamic 轮询 Error: undefined
已配置cookie,配置是从访问主页时候右键检查里的cookie丢进cookie转json然后丢到public下面的那个。
是cookie配置的问题吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.