We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在kook上,输入以下三个字符: [ ] 还有 `,机器人在处理信息时分别变为了 \\[ \\] 和 \\`
[
]
\\[
\\]
1.添加以下测试代码
ctx.command("echoargs").action((_, ...args) => { console.log(args) return args })
2.在kook上发送测试消息
echoargs [ ] `
3.在终端得到以下内容
[ '\\[', '\\]', '\\`' ]
在终端得到的内容应该如下
[ '[', ']', '`' ]
No response
The text was updated successfully, but these errors were encountered:
这是因为 kook 默认将用户输入理解成 markdown,后续会考虑引入 markdown 解析库进行处理。
Sorry, something went wrong.
satorijs/satori@e249d20
已修复。
直接把content里面的markdown字符转义处理,会导致发送消息的时候 kmarkdown 几乎所有语法都被转义,从而失效了
无关问题请单独提交 issue。根据 Satori 的标准,从来没有说过文本就是 kmarkdown,要发送富文本内容应当使用消息元素。
No branches or pull requests
Describe the bug
在kook上,输入以下三个字符:
[
]
还有 `,机器人在处理信息时分别变为了\\[
\\]
和 \\`Steps to reproduce
1.添加以下测试代码
2.在kook上发送测试消息
3.在终端得到以下内容
Expected behavior
在终端得到的内容应该如下
Screenshots
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: