mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 14:41:14 +00:00
Added or updated actionSummary, actionTags, payloadExample, and returnExample properties for all OneBot action classes in the napcat-onebot package. This improves API documentation and discoverability by providing concise summaries, categorization tags, and usage examples for each action.
18 lines
526 B
TypeScript
18 lines
526 B
TypeScript
import { ActionName } from '@/napcat-onebot/action/router';
|
|
import { OneBotAction } from '../OneBotAction';
|
|
import { Type } from '@sinclair/typebox';
|
|
|
|
export class BotExit extends OneBotAction<void, void> {
|
|
override actionName = ActionName.Exit;
|
|
override payloadSchema = Type.Void();
|
|
override returnSchema = Type.Void();
|
|
override actionSummary = '退出登录';
|
|
override actionTags = ['系统扩展'];
|
|
override payloadExample = {};
|
|
override returnExample = null;
|
|
|
|
async _handle () {
|
|
process.exit(0);
|
|
}
|
|
}
|