mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-09-28 12:07:57 +00:00
chore: version Api
This commit is contained in:
parent
24a166cb94
commit
c2e28ab5a6
@ -1,6 +1,6 @@
|
||||
import path, { dirname } from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
export const napcat_version = "2.0.0";
|
||||
export class NapCatPathWrapper {
|
||||
binaryPath: string;
|
||||
logsPath: string;
|
||||
|
@ -1,16 +1,15 @@
|
||||
import BaseAction from '../BaseAction';
|
||||
import { OB11Version } from '../../types';
|
||||
import { ActionName } from '../types';
|
||||
import { version } from '@/onebot/version';
|
||||
import { napcat_version } from '@/common/framework/napcat';
|
||||
|
||||
export default class GetVersionInfo extends BaseAction<any, OB11Version> {
|
||||
export default class GetVersionInfo extends BaseAction<any, any> {
|
||||
actionName = ActionName.GetVersionInfo;
|
||||
|
||||
protected async _handle(payload: any): Promise<any> {
|
||||
return {
|
||||
app_name: 'NapCat.Onebot',
|
||||
protocol_version: 'v11',
|
||||
app_version: version
|
||||
app_version: napcat_version
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,6 @@
|
||||
import { NapCatCore, InstanceContext } from "@/core";
|
||||
|
||||
|
||||
//OneBot实现类
|
||||
|
||||
export class NapCatOneBot11Adapter {
|
||||
readonly core: NapCatCore;
|
||||
readonly context: InstanceContext;
|
||||
|
Loading…
Reference in New Issue
Block a user