change how properties file is loaded and rely on environment variables if it doesn't exist

This commit is contained in:
anthorob committed 2024-07-10 20:28:28 -04:00
1 parent 0b1c326f40
commit f51ae465bd
7 files changed
+46 -89

No files matched your search

+5 -2
View File
@@ -1,8 +1,8 @@
# Net Neutrality Discord bot
This is the source code for my custom discord bot. This is a personal project, so I offer no support on how to build it.
This is the source code for my custom discord bot.
This is a personal project, so I offer no support on how to build it.
The configuration is contained in the file "bot.properties". There is an example file for all the variables, they can also be overwritten by environment variables.
The preferred method for running the bot is by using Docker Compose like this:
@@ -10,3 +10,6 @@ The preferred method for running the bot is by using Docker Compose like this:
docker compose build
docker compose up -d
```
The environment variables needed for the bot to run are available in the file **bot.properties.example**
If running locally without Docker, you need to copy the example file to **bot.properties** and fill the values.