AstrBot-side ActionsCat adapter.
Example:
{
"sender_qq": "114514",
"current_group": "dm",
"raw_msg": "小米自研玄戒O1芯片深度评测:直逼8 Elite! https://www.bilibili.com/video/BV18sJHz5ENR/?spm_id_from=333.1387.favlist.content.click&vd_source=9a0e2be66beaff71d0754773d78aa6fb"
}Note:
sender_qq: Sender's QQ number.current_group: Current group number; for private chat, it isdm.raw_msg: The original text provided by AstrBot.
The .env file in the plugin directory is read by default.
Default:
POST http://127.0.0.1:8080/v1/dispatch
WIP
{
"messages": [
{"type": "text", "text": "hello"},
{"type": "image_url", "url": "https://example.com/a.png"}
]
}If the backend returns the following result, the adapter will not reply to the group chat.
{"code": "NO_MATCH"}