mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-27 19:31:22 +08: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,
|
|
};
|
|
}
|
|
}
|