mirror of
https://gitlab.edgegamers.io/discord/ds-bot.git
synced 2025-12-06 00:42:41 -08:00
Switch all to persistent
This commit is contained in:
@@ -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.
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user