koishi-plugin-api
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.
- channelId: string | string[];
- guildId?: string;
- content: string;
- /api/bots/:sid/message/update - [post] Update a message
- channelId: string;
- messageId: string;
- content: string;
- /api/bots/:sid/message/delete - [post] Recall a message
- channelId: string;
- messageId: string;