chore: OneBotApi
This commit is contained in:
1 parent
7587e1b8f5
commit
086a6ad2cd
111 files changed
+4493
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import BaseAction from '../BaseAction';
|
||||
import { OB11Version } from '../../types';
|
||||
import { ActionName } from '../types';
|
||||
import { version } from '@/onebot11/version';
|
||||
|
||||
export default class GetVersionInfo extends BaseAction<any, OB11Version> {
|
||||
actionName = ActionName.GetVersionInfo;
|
||||
|
||||
protected async _handle(payload: any): Promise<OB11Version> {
|
||||
return {
|
||||
app_name: 'NapCat.Onebot',
|
||||
protocol_version: 'v11',
|
||||
app_version: version
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user