added debug mode as optional configuration

This commit is contained in:
ned
2022-12-08 11:10:29 +01:00
parent ec8880dd54
commit aeb13b43bb
2 changed files with 5 additions and 2 deletions

View File

@@ -45,9 +45,11 @@ TELEGRAM_BOT_TOKEN="<YOUR_TELEGRAM_BOT_TOKEN>"
Additional optional (but recommended) configuration values:
```
ALLOWED_TELEGRAM_USER_IDS="<USER_ID_1>,<USER_ID_2>,..."
ALLOWED_TELEGRAM_USER_IDS="<USER_ID_1>,<USER_ID_2>,..." # Defaults to "*"
DEBUG=false # Defaults to TRUE, set to FALSE to disable debug mode
```
* `ALLOWED_TELEGRAM_USER_IDS`: A comma-separated list of Telegram user IDs that are allowed to interact with the bot (use [getidsbot](https://t.me/getidsbot) to find your user ID). **Important**: by default, *everyone* is allowed (`*`)
* `DEBUG`: Enable debug logging for the [revChatGpt](https://github.com/acheong08/ChatGPT) package
### Run
Use the following command to start the bot: