mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
16 lines
419 B
TypeScript
16 lines
419 B
TypeScript
import BaseAction from '../BaseAction'
|
|
import { OB11Status } from '../../types'
|
|
import { ActionName } from '../types'
|
|
import { getSelfInfo } from '../../../common/data'
|
|
|
|
export default class GetStatus extends BaseAction<any, OB11Status> {
|
|
actionName = ActionName.GetStatus
|
|
|
|
protected async _handle(payload: any): Promise<OB11Status> {
|
|
return {
|
|
online: getSelfInfo().online!,
|
|
good: true,
|
|
}
|
|
}
|
|
}
|