diff --git a/src/onebot11/action/file/GetOnlineClient.ts b/src/onebot11/action/file/GetOnlineClient.ts new file mode 100644 index 00000000..b1ff2585 --- /dev/null +++ b/src/onebot11/action/file/GetOnlineClient.ts @@ -0,0 +1,9 @@ +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; +export class GetOnlineClient extends BaseAction> { + actionName = ActionName.GetRobotUinRange; + + protected async _handle(payload: void) { + + } +} diff --git a/src/onebot11/action/types.ts b/src/onebot11/action/types.ts index 0b071a5e..16a03abe 100644 --- a/src/onebot11/action/types.ts +++ b/src/onebot11/action/types.ts @@ -78,5 +78,6 @@ export enum ActionName { GoCQHTTP_GetGroupMsgHistory = 'get_group_msg_history', GoCQHTTP_GetForwardMsg = 'get_forward_msg', GetFriendMsgHistory = 'get_friend_msg_history', - GetGroupSystemMsg = 'get_group_system_msg' + GetGroupSystemMsg = 'get_group_system_msg', + GetOnlineClient = "get_online_clients" } diff --git a/src/onebot11/main.ts b/src/onebot11/main.ts index 4337b956..40cabe57 100644 --- a/src/onebot11/main.ts +++ b/src/onebot11/main.ts @@ -75,11 +75,11 @@ export class NapCatOnebot11 { // Create MsgListener const msgListener = new MsgListener(); msgListener.onRecvSysMsg = async (protobufData: number[]) => { - // function buf2hex(buffer: Buffer) { - // return [...new Uint8Array(buffer)] - // .map(x => x.toString(16).padStart(2, '0')) - // .join(''); - // } + function buf2hex(buffer: Buffer) { + return [...new Uint8Array(buffer)] + .map(x => x.toString(16).padStart(2, '0')) + .join(''); + } // let Data: Data = { // header: { // GroupNumber: 0, @@ -152,6 +152,7 @@ export class NapCatOnebot11 { // 528 68 GroupApply // 528 138 C2CRecall // 528 290 C2CPoke + // 528 349 DeviceChange // 732 12 GroupBan // 732 16 GroupUniqueTitleChange // 732 17 GroupRecall