mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-01 07:19:03 +08: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 [];
|
|
}
|
|
}
|