File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11MONGODBURL = your-url-to-database
2- TWITCH_TOKEN_URL = only-for-scripts-folder
2+ TWITCH_TOKEN_URL = only-for-scripts-folder
3+
4+ # Disabled
5+ SENTRY_AUTH_TOKEN =
6+ SENTRY_DSN =
Original file line number Diff line number Diff line change 1+ services :
2+ disbot :
3+ image : ghcr.io/disbotdevelopment/disbot-bot:latest
4+ container_name : disbot-bot
5+ environment :
6+ MONGODBURL : " mongodb://<user>:<pw>@disbot-database:27017/disbot-beta-db?authSource=admin"
7+ volumes :
8+ - " /docker/disbot-bot/config.yml:/bot/config.yml"
9+ # Config will be generated if the config.yml is a FILE!
10+ disbot-database :
11+ image : ' bitnami/mongodb:latest'
12+ environment :
13+ - MONGODB_ADVERTISED_HOSTNAME=<hostname>
14+ - MONGODB_REPLICA_SET_MODE=primary
15+ - MONGODB_ROOT_USER=root
16+ - MONGODB_ROOT_PASSWORD=YOUR !PASSWORD!
17+ - MONGODB_REPLICA_SET_KEY=disbotrep
18+ # ports:
19+ # - '27017:27017'
20+ volumes :
21+ - ' /docker/disbot-db:/bitnami/mongodb'
Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ export let Config: DisBotConfigData
1212
1313export async function configStartup ( ) {
1414 const fileCheck = fs . existsSync ( `${ process . cwd ( ) } /config.yml` ) ;
15- if ( ! fileCheck ) {
15+ let content : string
16+ if ( fileCheck ) {
17+ const fileContent = fs . readFileSync ( `${ process . cwd ( ) } /config.yml` ) ;
18+ content = fileContent . toString ( ) ;
19+ }
20+ if ( ! fileCheck || ! content ) {
1621 const configData : DisBotConfigData = {
1722 Bot : {
1823 DiscordBotToken : "" ,
You can’t perform that action at this time.
0 commit comments