Switch all to persistent

This commit is contained in:
MSWS
2023-08-27 02:39:52 -07:00
parent 6d01e8bfbf
commit 6e887ecb68
2 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ docker run -d \
```
## Environment Variables
May alternatively be set within the `configs/global.json` file.
May alternatively be set within the `persistent/global.json` file.
- APP_DISCORD_TOKEN
- APP_MAUL_TOKEN
- APP_MAUL_URL
@@ -49,7 +49,7 @@ Grants Dedicated Supporters granular control over their voice channels. Leadersh
- **Muting and Gagging** with each DS tier having a configurable max mute/gag/white/black list size.
## Configuration
All configuration is done through the guild's specific JSON file. Config files are under `/configs/guilds/{guildId}.json`; Global configuration is only through `/configs/global.json`.
All configuration is done through the guild's specific JSON file. Config files are under `/persistent/guilds/{guildId}.json`; Global configuration is only through `/persistent/global.json`.
## Data Management
Currently, all data is stored in a flat JSON file within the `persistent/guilds/{guildId}.json` directory. This is subject to change in the future.

View File

@@ -25,7 +25,7 @@ export class Bot implements DSBot {
constructor() {
this.modules = new ModuleManager();
this.config = new FileConfig("configs/global.json");
this.config = new FileConfig("persistent/global.json");
this.data = new FileConfig("persistent/data.json");
const tokenEntry = this.config.registerEntry(new TokenEntry());