mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-07-04 22:29:18 +00:00
优化
This commit is contained in:
parent
525194f097
commit
858b34ee37
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user