Skip to content

search功能似乎坏掉了 #219

@SnowMoonSS

Description

@SnowMoonSS

当存在多个结果时,没有回复,控制台报错:

[INFO] 接收 <- 群聊 [魔航船虚无方舟(1234567890)] [SnowMoonSS(123456789)] /search 加百列
[ERROR] 发生错误 TypeError: converter is not a function
    at OneBotMsgApi.createSendElements (file:///opt/QQ/resources/app/app_launcher/napcat/napcat.mjs:60602:26)
    at SendGroupMsg.base_handle (file:///opt/QQ/resources/app/app_launcher/napcat/napcat.mjs:61004:85)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

当只有一个结果时,bot返回:搜索失败!JSONDecodeError('Extra data', '404 not found.')
只有在搜索不到结果时的返回才是正常的: 在最终幻想XIV中没有找到"XXX"

我使用的是Napcat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions