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:
2026-03-07 07:10:36 -07:00
parent 0b2e83ba0c
commit 38635243f7
6 changed files with 80 additions and 1 deletions

10
.env.example Normal file
View 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