Skip to content

Commit

Permalink
Lazy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Soapy7261 committed Jan 31, 2023
1 parent 9d991bf commit 62fb2de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CONFIGURATION.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Configuration
Pingernos py offers three different ways to configure it, a config file, environment variables and a .env
If you wish to use the config file, just copy the [example.config.json](./example.config.json) to a new file called config.json in the root folder and modify the options in it.
If you wish to use environment variables, you must set the `use_json` variable in [getdata](./utils.py) to `False`.
If you wish to use the config file, you must set the `use_json` variable in [getdata](./utils.py) to `True` and copy the [example.config.json](./example.config.json) to a new file called config.json in the root folder and modify the options in it.
If you wish to use a .env file, just copy the [example.env](./example.env) to a new file called .env in the root folder and modify the options in it, you can use environment variables and a .env file at the same time if you so desire.
Environment variables use `SCREAMING_SNAKE_CASE`, the configuration file uses `PascalCase`.

Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Colors:
orange = 0xfaa61a
@staticmethod
def get_data() -> dict:
usejson = False #Set to False to use enviorment variables instead of config.json
usejson = False #Set to True to a config.json
if usejson:
try:
with open('config.json', 'r', encoding="UTF-8") as file:
Expand Down

0 comments on commit 62fb2de

Please sign in to comment.