Replace the placeholder values with your actual credentials. Never commit the .env file to version control.
Required variables:
DISCORD_TOKEN - Your Discord bot token
GUILD_ID - Your Discord server’s ID (right-click server → Copy Server ID)
Optional variables:
ANTHROPIC_API_KEY - For AI digest generation
DOKPLOY_VOLUME_PATH - Custom path for digest output
GITHUB_REPO_URL - Auto-commit digests to GitHub (requires GITHUB_TOKEN)
GITHUB_TOKEN - GitHub personal access token for auto-sync
4
Run the bot
Start the bot with:
python bot.py
You should see output like:
2026-03-04 00:00:00 - INFO - BotName#1234 has connected to Discord!2026-03-04 00:00:00 - INFO - Bot is in 1 guild(s)2026-03-04 00:00:00 - INFO - Connected to: Your Server Name2026-03-04 00:00:00 - INFO - Text channels: 52026-03-04 00:00:00 - INFO - - general2026-03-04 00:00:00 - INFO - - announcements2026-03-04 00:00:00 - INFO - Daily digest task started
This command requires an ANTHROPIC_API_KEY in your .env file.
To generate an AI-powered summary of team activity:
!digest
The bot will respond with:
🤖 Generating digest for last 24 hours...✅ Daily Digest Generated## Individual Updates**John** - Completed the authentication refactor and pushed to staging...**Sarah** - Working on the new dashboard UI, made good progress on...## Blockers & Challenges- John mentioned needing design review for the login flow- Database migration still pending approval...📁 Full digest: `Daily Digests/2026-03-04 - Team Digest.md`
Like exports, you can specify hours: !digest 48 for a 48-hour digest.
The generated Markdown file (Daily Digests/2026-03-04 - Team Digest.md):
---date: 2026-03-04type: daily-digesttags: [team, standup, daily]contributors: 5messages: 342channels: 8---# Team Digest - 2026-03-04**📊 Activity Summary**- 342 messages across 8 channels- 5 active team members- Time range: Last 24 hours---## Individual Updates**John** - Completed authentication refactor...**Sarah** - Working on dashboard UI...## Upcoming Work- John plans to start on the API documentation- Sarah will tackle mobile responsiveness next## Blockers & Challenges- Design review needed for login flow- Database migration approval pending## Key Decisions & Ideas- Team agreed to use TypeScript for new services- Decided to postpone the analytics feature to next sprint## Action Items- [ ] John: Schedule design review meeting- [ ] Sarah: Create Figma mockups for mobile views- [ ] Team: Review and approve DB migration plan---**🔗 Links**- [[2026-03-03 - Team Digest|← Previous Day]]- [[2026-03-05 - Team Digest|Next Day →]]---*Auto-generated at 12:00 AM ET from Discord*
The bot automatically generates a daily digest at midnight Eastern Time (12:00 AM ET) using the default 24-hour window. No manual intervention required!You’ll see this in the logs:
2026-03-04 00:00:00 - INFO - Running scheduled daily digest2026-03-04 00:00:15 - INFO - ✅ Daily digest completed successfully
The scheduled time (default 12am ET) and time range (default 24 hours) can be customized in the Config class in bot.py (lines 39-40).