Configuration: recactor how it is written and handled

This commit is contained in:
Wroclaw 2023-09-18 11:06:15 +02:00
parent 13e993b964
commit 7ff4abc3c0
10 changed files with 130 additions and 61 deletions

View file

@ -1,3 +1,10 @@
# GPTcord
Connect ChatGPT to your Discord chat! This is a direct bridge to bring ChatGPT to discord.
## Configuration
Project can be configured in two ways:
1. `config.ts` in the project root folder, that exports an `IConfig`. [That](./src/configDefault.ts) interface can be imported from `./src/configDefault`.
2. Using environment variables, as defined in [defaultConfig.ts](./src/configDefault.ts).