style: code lint

This commit is contained in:
手瓜一十雪
2024-07-13 18:12:38 +08:00
parent 4beb2491fb
commit 763ee02994
7 changed files with 37 additions and 37 deletions

View File

@@ -145,7 +145,7 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
}
protected async _handle(payload: OB11PostSendMsg): Promise<{ message_id: number }> {
let { peer, group } = await createContext(payload, this.contextMode);
const { peer, group } = await createContext(payload, this.contextMode);
const messages = normalize(
payload.message,

View File

@@ -87,7 +87,7 @@ export class ReverseWebsocket {
'X-Self-ID': selfInfo.uin,
'Authorization': `Bearer ${token}`,
'x-client-role': 'Universal', // koishi-adapter-onebot 需要这个字段
"User-Agent": "OneBot/11",
'User-Agent': 'OneBot/11',
}
});
registerWsEventSender(this.websocket);

View File

@@ -60,7 +60,7 @@ export enum OB11MessageDataType {
dice = 'dice',
RPS = 'rps',
miniapp = 'miniapp',//json类
Location = "location"
Location = 'location'
}
export interface OB11MessageMFace {