This commit is contained in:
Jerry 2025-05-14 18:08:01 +08:00
parent 525194f097
commit 858b34ee37

View File

@ -11,6 +11,7 @@ class Handler {
['getGroupInfo', this.handleGetGroupInfo.bind(this)], ['getGroupInfo', this.handleGetGroupInfo.bind(this)],
['sendMessage', this.handleSendMessage.bind(this)], ['sendMessage', this.handleSendMessage.bind(this)],
['broadcastMessage', this.broadcastMessage.bind(this)], ['broadcastMessage', this.broadcastMessage.bind(this)],
['reportBots', this.reportBots.bind(this)],
]); ]);
} }
@ -95,6 +96,10 @@ class Handler {
const message = msg.data?.message; const message = msg.data?.message;
await botControl.broadcastMessage(message); await botControl.broadcastMessage(message);
} }
async reportBots(client, msg) {
await botControl.reportBots();
}
} }
const handler = new Handler(); const handler = new Handler();