chore: run eslint --fix in onebot module

This commit is contained in:
Wesley F. Young
2024-08-09 20:35:03 +08:00
parent f5b6fa31a7
commit af01a073ef
110 changed files with 3832 additions and 3829 deletions

View File

@@ -6,5 +6,5 @@ interface ReturnType {
}
export default class CanSendImage extends CanSendRecord {
actionName = ActionName.CanSendImage;
actionName = ActionName.CanSendImage;
}

View File

@@ -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
};
}
}

View File

@@ -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;

View File

@@ -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:{}
};
}
}

View File

@@ -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
};
}
}