Files
NapCatQQ/src/onebot/action/go-cqhttp/GetOnlineClient.ts
T
手瓜一十雪 1bb6dce239 refactor: type-check (#586)
* refactor: type-check

* fix: default

* refactor: type-check
2024-12-01 12:41:51 +08:00

16 lines
433 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<any>> {
actionName = ActionName.GetOnlineClient;
async _handle(payload: void) {
//注册监听
this.core.apis.SystemApi.getOnlineDev();
await sleep(500);
return [];
}
}