import BaseAction from '../BaseAction'; import { OB11Config, ob11Config } from '@/onebot11/config'; import { ActionName } from '../types'; export class GetConfigAction extends BaseAction { actionName = ActionName.GetConfig; protected async _handle(payload: null): Promise { return ob11Config; } } export class SetConfigAction extends BaseAction { actionName = ActionName.SetConfig; protected async _handle(payload: OB11Config): Promise { ob11Config.save(payload); } }