feat: /get_online_clients

This commit is contained in:
手瓜一十雪
2024-05-25 13:09:47 +08:00
parent 17ed1e0dc8
commit f96a2f7ffc
6 changed files with 535 additions and 10 deletions

View File

@@ -1,9 +0,0 @@
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
export class GetOnlineClient extends BaseAction<void, Array<any>> {
actionName = ActionName.GetOnlineClient;
protected async _handle(payload: void) {
}
}

View File

@@ -0,0 +1,19 @@
import { DeviceList } from '@/onebot11/main';
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
no_cache: { type: 'boolean' },
}
} as const satisfies JSONSchema;
export class GetOnlineClient extends BaseAction<void, Array<any>> {
actionName = ActionName.GetOnlineClient;
protected async _handle(payload: void) {
return DeviceList;
}
}