chore: OneBotApi
This commit is contained in:
1 parent
7842cd0bc0
commit
8a4add257f
111 files changed
+4493
No files matched your search
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user