@ahdg/koishi-plugin-api
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

koishi-plugin-api

npm

Expose an API with Koishi to make various requests.

Default:

  • /api - [all] Test your sign.

Bots plugin

  • /api/bots - [get] Get the list of bots.
  • /api/bots/:sid - [get] Get the bot info with sid
  • /api/bots/:sid/message/create - [post] Send a message with bot.
  1. channelId: string | string[];
  2. guildId?: string;
  3. content: string;
  • /api/bots/:sid/message/update - [post] Update a message
  1. channelId: string;
  2. messageId: string;
  3. content: string;
  • /api/bots/:sid/message/delete - [post] Recall a message
  1. channelId: string;
  2. messageId: string;

Readme

Keywords

Package Sidebar

Install

npm i @ahdg/koishi-plugin-api

Weekly Downloads

5

Version

0.1.1

License

MIT

Unpacked Size

18.9 kB

Total Files

6

Last publish

Collaborators

  • ahdg