Replies: 3 comments 7 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Q: 在 v3 的时候复写指令描述的写法在 v4 忽然不管用了,怎么办! A: 这是因为一些功能改热了而导致的问题。一个解决方法是: ctx.on('command-added', command => {
if (command.name == 'schedule') ctx.command('schedule', '俺的定时')
}) 如果想要复写 ctx.on('command-added', async (command) => {
await sleep(0); // const { sleep } = require('koishi')
if (command.name == 'teach') ctx.command('teach', '教学').usage('太长了,砍掉!')
}) 在非热重载环境下,复写指令配置项( 听说 4.4 的模板服务也能解决这个问题,但现在这还是个饼,先用着这个吧! |
Beta Was this translation helpful? Give feedback.
1 reply
-
本问题现已置于文档中 https://koishi.js.org/manual/advanced/server.html Q: 我的控制台看起来加载完成了!可以切换暗色模式了!但没有任何页面显示出来! A: 最有可能的一种情况是,你的 Http 连接正常,但位于 如果你使用了反向代理服务,你需要手动配置这个路由。 以 Nginx 为例,在
*在配置路由前,记得检查你的 WS 路由是否为默认的 |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
虽然没有什么要写的,但是好像这个会是第 500 个 issue,占个号(不是)
Beta Was this translation helpful? Give feedback.
All reactions