Configuration: recactor how it is written and handled
This commit is contained in:
parent
13e993b964
commit
7ff4abc3c0
10 changed files with 130 additions and 61 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue