refactor: move version info into version.ts

This commit is contained in:
Wesley F. Young
2024-08-27 10:30:38 +08:00
parent e3f6881af9
commit e85f0835e9
4 changed files with 7 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { napcat_version } from '@/common/path';
import { napCatVersion } from '@/common/version';
export default class GetVersionInfo extends BaseAction<any, any> {
actionName = ActionName.GetVersionInfo;
@@ -9,7 +10,7 @@ export default class GetVersionInfo extends BaseAction<any, any> {
return {
app_name: 'NapCat.Onebot',
protocol_version: 'v11',
app_version: napcat_version,
app_version: napCatVersion,
};
}
}