mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 07:50:25 +00:00
16 lines
453 B
TypeScript
16 lines
453 B
TypeScript
import BaseAction from '../BaseAction';
|
|
import { ActionName } from '../types';
|
|
import { napcat_version } from '@/common/framework/napcat';
|
|
|
|
export default class GetVersionInfo extends BaseAction<any, any> {
|
|
actionName = ActionName.GetVersionInfo;
|
|
|
|
async _handle(payload: any): Promise<any> {
|
|
return {
|
|
app_name: 'NapCat.Onebot',
|
|
protocol_version: 'v11',
|
|
app_version: napcat_version,
|
|
};
|
|
}
|
|
}
|