chore: OneBotApi

This commit is contained in:
手瓜一十雪 committed 2024-08-09 15:44:45 +08:00
1 parent 7842cd0bc0
commit 8a4add257f
111 files changed
+4493

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import BaseAction from '../BaseAction';
import { OB11Status } from '../../types';
import { ActionName } from '../types';
import { selfInfo, stat } from '@/core/data';
export default class GetStatus extends BaseAction<any, OB11Status> {
actionName = ActionName.GetStatus;
protected async _handle(payload: any): Promise<OB11Status> {
return {
online: !!selfInfo.online,
good: true,
stat
};
}
}