mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
chore: run eslint --fix in onebot module
This commit is contained in:
@@ -6,5 +6,5 @@ interface ReturnType {
|
||||
}
|
||||
|
||||
export default class CanSendImage extends CanSendRecord {
|
||||
actionName = ActionName.CanSendImage;
|
||||
actionName = ActionName.CanSendImage;
|
||||
}
|
||||
|
||||
@@ -6,11 +6,11 @@ interface ReturnType {
|
||||
}
|
||||
|
||||
export default class CanSendRecord extends BaseAction<any, ReturnType> {
|
||||
actionName = ActionName.CanSendRecord;
|
||||
actionName = ActionName.CanSendRecord;
|
||||
|
||||
protected async _handle(_payload: void): Promise<ReturnType> {
|
||||
return {
|
||||
yes: true
|
||||
};
|
||||
}
|
||||
protected async _handle(_payload: void): Promise<ReturnType> {
|
||||
return {
|
||||
yes: true
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,11 +5,11 @@ import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
|
||||
class GetLoginInfo extends BaseAction<null, OB11User> {
|
||||
actionName = ActionName.GetLoginInfo;
|
||||
actionName = ActionName.GetLoginInfo;
|
||||
|
||||
protected async _handle(payload: null) {
|
||||
return OB11Constructor.selfInfo(this.CoreContext.selfInfo);
|
||||
}
|
||||
protected async _handle(payload: null) {
|
||||
return OB11Constructor.selfInfo(this.CoreContext.selfInfo);
|
||||
}
|
||||
}
|
||||
|
||||
export default GetLoginInfo;
|
||||
|
||||
@@ -2,13 +2,13 @@ import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
|
||||
export default class GetStatus extends BaseAction<any, any> {
|
||||
actionName = ActionName.GetStatus;
|
||||
actionName = ActionName.GetStatus;
|
||||
|
||||
protected async _handle(payload: any): Promise<any> {
|
||||
return {
|
||||
online: !!this.CoreContext.selfInfo.online,
|
||||
good: true,
|
||||
stat:{}
|
||||
};
|
||||
}
|
||||
protected async _handle(payload: any): Promise<any> {
|
||||
return {
|
||||
online: !!this.CoreContext.selfInfo.online,
|
||||
good: true,
|
||||
stat:{}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,13 +3,13 @@ import { ActionName } from '../types';
|
||||
import { napcat_version } from '@/common/framework/napcat';
|
||||
|
||||
export default class GetVersionInfo extends BaseAction<any, any> {
|
||||
actionName = ActionName.GetVersionInfo;
|
||||
actionName = ActionName.GetVersionInfo;
|
||||
|
||||
protected async _handle(payload: any): Promise<any> {
|
||||
return {
|
||||
app_name: 'NapCat.Onebot',
|
||||
protocol_version: 'v11',
|
||||
app_version: napcat_version
|
||||
};
|
||||
}
|
||||
protected async _handle(payload: any): Promise<any> {
|
||||
return {
|
||||
app_name: 'NapCat.Onebot',
|
||||
protocol_version: 'v11',
|
||||
app_version: napcat_version
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user