mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-26 19:01:28 +08:00
20 lines
499 B
TypeScript
20 lines
499 B
TypeScript
import { OneBotAction } from '@/onebot/action/OneBotAction';
|
|
import { ActionName } from '@/onebot/action/router';
|
|
|
|
interface ResponseType{
|
|
online: boolean;
|
|
good: boolean;
|
|
stat: unknown;
|
|
}
|
|
export default class GetStatus extends OneBotAction<void, ResponseType> {
|
|
override actionName = ActionName.GetStatus;
|
|
|
|
async _handle(): Promise<ResponseType> {
|
|
return {
|
|
online: !!this.core.selfInfo.online,
|
|
good: true,
|
|
stat: {},
|
|
};
|
|
}
|
|
}
|