add .env.template for configuration and update token file path handling

This commit is contained in:
GW_MC
2026-01-23 18:52:58 +08:00
parent fed38eafd2
commit 3d1b45f54f
2 changed files with 12 additions and 2 deletions

7
.env.template Normal file
View File

@@ -0,0 +1,7 @@
CLIENT_ID=<discord application client id>
CLIENT_SECRET=<discord application client OAuth secret>
REDIRECT_URI=<your OAuth2 redirect URI, must match the one set in your Discord application>
ESP_IP=<IP address of your ESP device>
ESP_PORT=<port number your ESP device listens on>
LISTEN_PORT=<port number your application listens on>
TOKEN_FILE_PATH=<path to store OAuth2 tokens, relative to project root, or absolute>