mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-11 06:39:00 +08:00
20 lines
584 B
TypeScript
20 lines
584 B
TypeScript
import { OneBotAction } from '@/napcat-onebot/action/OneBotAction';
|
|
import { ActionName } from '@/napcat-onebot/action/router';
|
|
import { napCatVersion } from 'napcat-common/src/version';
|
|
interface ResponseType {
|
|
app_name: string;
|
|
protocol_version: string;
|
|
app_version: string;
|
|
}
|
|
export default class GetVersionInfo extends OneBotAction<void, ResponseType> {
|
|
override actionName = ActionName.GetVersionInfo;
|
|
|
|
async _handle (): Promise<ResponseType> {
|
|
return {
|
|
app_name: 'NapCat.Onebot',
|
|
protocol_version: 'v11',
|
|
app_version: napCatVersion,
|
|
};
|
|
}
|
|
}
|