chore: gocq接口完成

This commit is contained in:
手瓜一十雪 committed 2024-08-09 17:27:44 +08:00
1 parent 26cb728e9c
commit 6dbc5fc5a0
22 files changed
+579 -51

No files matched your search

@@ -1,8 +1,6 @@
import { DeviceList } from '@/onebot11/main';
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { JSONSchema } from 'json-schema-to-ts';
import { NTQQSystemApi } from '@/core';
import { sleep } from '@/common/utils/helper';
const SchemaData = {
@@ -16,8 +14,11 @@ export class GetOnlineClient extends BaseAction<void, Array<any>> {
actionName = ActionName.GetOnlineClient;
protected async _handle(payload: void) {
//注册监听
const NTQQSystemApi = this.CoreContext.getApiContext().SystemApi;
NTQQSystemApi.getOnlineDev();
await sleep(500);
return DeviceList;
return [];
}
}