koishijs / koishi

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

Bug: 在 QQ 群内包含 Quote 的信息无法触发 Command #968

Closed std-microblock closed 1 year ago

std-microblock commented 1 year ago

Describe the bug

ctx.command('search [image:text]', '搜图片')
    .shortcut('搜图', { fuzzy: true })
    .action(...)

image

Steps to reproduce

注册一个 Command,然后以回复的形式调用之

Expected behavior

正常触发 Command

image

Screenshots

No response

Versions

Additional context

No response

MaikoTan commented 1 year ago

Try Koishi 4.11.4 or higher.

shigma commented 1 year ago

此问题已证实存在。为 onebot 限定问题。

shigma commented 1 year ago

Can you try this patch for node_modules/@koishijs/core/lib/index.cjs (around line 735)?

image
std-microblock commented 1 year ago

Can you try this patch for node_modules/@koishijs/core/lib/index.cjs (around line 735)?

image

it works.