mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 16:00:27 +00:00
15 lines
429 B
TypeScript
15 lines
429 B
TypeScript
import { OneBotAction } from '@/onebot/action/OneBotAction';
|
|
import { ActionName } from '@/onebot/action/router';
|
|
import { sleep } from '@/common/helper';
|
|
|
|
export class GetOnlineClient extends OneBotAction<void, Array<void>> {
|
|
override actionName = ActionName.GetOnlineClient;
|
|
async _handle() {
|
|
//注册监听
|
|
this.core.apis.SystemApi.getOnlineDev();
|
|
await sleep(500);
|
|
|
|
return [];
|
|
}
|
|
}
|