refactor: remove helper directory in onebot

This commit is contained in:
Seijo Cecilia
2024-08-28 15:09:17 +08:00
parent f47e75c423
commit 0d65f846ae
18 changed files with 17 additions and 19 deletions

View File

@@ -0,0 +1,11 @@
import { ConfigBase } from '@/common/config-base';
import ob11DefaultConfig from './onebot11.json';
import { NapCatCore } from '@/core';
export type OB11Config = typeof ob11DefaultConfig;
export class OB11ConfigLoader extends ConfigBase<OB11Config> {
constructor(core: NapCatCore, configPath: string) {
super('onebot11', core, configPath);
}
}

View File

@@ -0,0 +1,31 @@
{
"http": {
"enable": true,
"host": "",
"port": 3000,
"secret": "",
"enableHeart": false,
"enablePost": false,
"postUrls": []
},
"ws": {
"enable": false,
"host": "",
"port": 3001
},
"reverseWs": {
"enable": false,
"urls": []
},
"GroupLocalTime": {
"Record": false,
"RecordList": []
},
"debug": false,
"heartInterval": 30000,
"messagePostFormat": "array",
"enableLocalFile2Url": true,
"musicSignUrl": "",
"reportSelfMessage": false,
"token": ""
}