Skip to content

actionscat/astrbot_plugin_actionscat_adapter

Repository files navigation

astrbot_plugin_actionscat_adapter

Python 3.9+ License AstrBot Plugin

AstrBot-side ActionsCat adapter.

Contract

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 is dm.
  • raw_msg: The original text provided by AstrBot.

Environmental variable

The .env file in the plugin directory is read by default.

Default:

POST http://127.0.0.1:8080/v1/dispatch

Backend Response

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"}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors