mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 21:10:23 +00:00
style: code lint
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -60,7 +60,7 @@ export enum OB11MessageDataType {
|
||||
dice = 'dice',
|
||||
RPS = 'rps',
|
||||
miniapp = 'miniapp',//json类
|
||||
Location = "location"
|
||||
Location = 'location'
|
||||
}
|
||||
|
||||
export interface OB11MessageMFace {
|
||||
|
||||
Reference in New Issue
Block a user