mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 07:50:25 +00:00
* feat: 统一并标准化eslint * lint: napcat.webui * lint: napcat.webui * lint: napcat.core * build: fix * lint: napcat.webui * refactor: 重构eslint * Update README.md
15 lines
409 B
TypeScript
15 lines
409 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 [];
|
|
}
|
|
}
|