mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
feat: try support get_online_clients
This commit is contained in:
parent
f315f7977d
commit
add759e889
9
src/onebot11/action/file/GetOnlineClient.ts
Normal file
9
src/onebot11/action/file/GetOnlineClient.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import BaseAction from '../BaseAction';
|
||||||
|
import { ActionName } from '../types';
|
||||||
|
export class GetOnlineClient extends BaseAction<void, Array<any>> {
|
||||||
|
actionName = ActionName.GetRobotUinRange;
|
||||||
|
|
||||||
|
protected async _handle(payload: void) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -78,5 +78,6 @@ export enum ActionName {
|
|||||||
GoCQHTTP_GetGroupMsgHistory = 'get_group_msg_history',
|
GoCQHTTP_GetGroupMsgHistory = 'get_group_msg_history',
|
||||||
GoCQHTTP_GetForwardMsg = 'get_forward_msg',
|
GoCQHTTP_GetForwardMsg = 'get_forward_msg',
|
||||||
GetFriendMsgHistory = 'get_friend_msg_history',
|
GetFriendMsgHistory = 'get_friend_msg_history',
|
||||||
GetGroupSystemMsg = 'get_group_system_msg'
|
GetGroupSystemMsg = 'get_group_system_msg',
|
||||||
|
GetOnlineClient = "get_online_clients"
|
||||||
}
|
}
|
||||||
|
@ -75,11 +75,11 @@ export class NapCatOnebot11 {
|
|||||||
// Create MsgListener
|
// Create MsgListener
|
||||||
const msgListener = new MsgListener();
|
const msgListener = new MsgListener();
|
||||||
msgListener.onRecvSysMsg = async (protobufData: number[]) => {
|
msgListener.onRecvSysMsg = async (protobufData: number[]) => {
|
||||||
// function buf2hex(buffer: Buffer) {
|
function buf2hex(buffer: Buffer) {
|
||||||
// return [...new Uint8Array(buffer)]
|
return [...new Uint8Array(buffer)]
|
||||||
// .map(x => x.toString(16).padStart(2, '0'))
|
.map(x => x.toString(16).padStart(2, '0'))
|
||||||
// .join('');
|
.join('');
|
||||||
// }
|
}
|
||||||
// let Data: Data = {
|
// let Data: Data = {
|
||||||
// header: {
|
// header: {
|
||||||
// GroupNumber: 0,
|
// GroupNumber: 0,
|
||||||
@ -152,6 +152,7 @@ export class NapCatOnebot11 {
|
|||||||
// 528 68 GroupApply
|
// 528 68 GroupApply
|
||||||
// 528 138 C2CRecall
|
// 528 138 C2CRecall
|
||||||
// 528 290 C2CPoke
|
// 528 290 C2CPoke
|
||||||
|
// 528 349 DeviceChange
|
||||||
// 732 12 GroupBan
|
// 732 12 GroupBan
|
||||||
// 732 16 GroupUniqueTitleChange
|
// 732 16 GroupUniqueTitleChange
|
||||||
// 732 17 GroupRecall
|
// 732 17 GroupRecall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user