refactor: ordered onebot11.json keys

This commit is contained in:
linyuchen
2024-05-03 13:04:02 +08:00
parent f1321d8ab7
commit 3e57e13647
2 changed files with 11 additions and 2 deletions

View File

@@ -55,6 +55,10 @@ class Config extends ConfigBase<OB11Config> implements OB11Config {
getConfigPath() {
return path.join(this.getConfigDir(), `onebot11_${selfInfo.uin}.json`);
}
protected getKeys(): string[] {
return ['httpHost', 'enableHttp', 'httpPort', 'wsHost', 'enableWs', 'wsPort', 'enableWsReverse', 'wsReverseUrls', 'enableHttpPost', 'httpPostUrls', 'enableHttpHeart', 'httpSecret', 'messagePostFormat', 'reportSelfMessage', 'debug', 'enableLocalFile2Url', 'heartInterval', 'token', 'musicSignUrl'];
}
}
export const ob11Config = new Config();