Add timer command with .env support
Adds a `timer` command that immediately confirms the timer and posts a notification back to Campfire when it fires, using CAMPFIRE_URL and CAMPFIRE_TOKEN. Adds godotenv so the bot loads a .env file automatically on startup. Includes a .env.example documenting all env vars. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
10
.env.example
Normal file
10
.env.example
Normal file
@@ -0,0 +1,10 @@
|
||||
# Sox environment variables
|
||||
|
||||
# Port to listen on (default: 4567)
|
||||
PORT=4567
|
||||
|
||||
# Base URL of your Campfire instance (used by the timer command to post notifications)
|
||||
CAMPFIRE_URL=https://your-campfire-instance.example.com
|
||||
|
||||
# Token used in the notification POST URL path
|
||||
CAMPFIRE_TOKEN=your_token_here
|
||||
Reference in New Issue
Block a user