- dirvine.
- Bux
- JimCollinson ✨ NEW!
- #general-chat (1209059622586163272)
- #general-support (1247881515107483759)
- #bug-reports (1290643554267566130)
- #hot-topics (1315677640581054464) ✨ NEW!
# Set your Discord token
export DISCORD_TOKEN='your-discord-token-here'
# Run everything!
./run_complete_pipeline.shThis will:
- ✅ Export all 4 channels
- ✅ Generate digests for all 3 users
- ✅ Create HTML with emojis & reactions
outputs/
├── dirvine__complete_archive.html ⭐ HTML with emojis
├── dirvine__complete_archive.md 📄 Markdown
├── dirvine__weekly.md 📅 Last 7 days
│
├── Bux_complete_archive.html ⭐ HTML with emojis
├── Bux_complete_archive.md 📄 Markdown
├── Bux_weekly.md 📅 Last 7 days
│
├── JimCollinson_complete_archive.html ⭐ HTML with emojis ✨ NEW!
├── JimCollinson_complete_archive.md 📄 Markdown ✨ NEW!
├── JimCollinson_weekly.md 📅 Last 7 days ✨ NEW!
│
└── SUMMARY.md 📊 Overview
# Open all three archives
xdg-open outputs/dirvine__complete_archive.html
xdg-open outputs/Bux_complete_archive.html
xdg-open outputs/JimCollinson_complete_archive.html
# Or in Firefox
firefox outputs/dirvine__complete_archive.html &
firefox outputs/Bux_complete_archive.html &
firefox outputs/JimCollinson_complete_archive.html &Each archive includes:
- 📊 Emojis in titles
- 📅 Calendar emoji on dates
- 🎨 Color-coded borders (green = posts, orange = replies)
- 💬 Quote boxes with context
- 👍 Reaction counts (👍 5, ❤️ 2)
- 🔗 Clickable Discord links
- 🌙 Dark theme
- 📱 Mobile responsive
Edit generate_multi_user_digest.sh:
USERS=("dirvine." "Bux" "JimCollinson" "NewUser")Edit export_discord_channels.sh:
declare -A CHANNELS=(
["general-chat"]="1209059622586163272"
["general-support"]="1247881515107483759"
["bug-reports"]="1290643554267566130"
["hot-topics"]="1315677640581054464"
["new-channel"]="YOUR_CHANNEL_ID_HERE"
)Edit generate_multi_user_digest.sh:
START_DATE="2024-01-01" # Start from Jan 2024# Last 14 days instead of 7
# Edit the script or run manually:
python3 discord_digest.py \
--exports ./digests \
--username "JimCollinson" \
--weekly-only \
--days 14export DISCORD_TOKEN='your-token'
./export_discord_channels.sh./generate_multi_user_digest.shpython3 discord_digest.py \
--exports ./digests \
--username "JimCollinson"For each of the 3 users (dirvine., Bux, JimCollinson):
- All posts BY the user
- All replies TO the user
- From ALL 4 channels
- With emojis, reactions, quotes
- HTML + Markdown versions
- Last 7 days of activity
- Same format as complete archive
- Markdown format
# Morning: Export fresh data
export DISCORD_TOKEN='your-token'
./export_discord_channels.sh
# Then: Generate digests
./generate_multi_user_digest.sh
# View: Open in browser
firefox outputs/dirvine__complete_archive.html
firefox outputs/Bux_complete_archive.html
firefox outputs/JimCollinson_complete_archive.htmlRun automatically every Sunday:
# Edit crontab
crontab -e
# Add this line (runs every Sunday at 10 PM)
0 22 * * 0 cd /home/willie/projects/discord_analyser && DISCORD_TOKEN='your-token' ./run_complete_pipeline.sh- Check the username spelling is exact
- Usernames are case-sensitive
- Try:
JimCollinson,jimcollinson, or check Discord for exact format
- Verify channel ID is correct
- Check Discord token has access to the channel
- Run export manually to see errors
- Check the user has actually posted in the channels
- Verify exports completed successfully
- Look at the markdown file to see if data is there
-
Test with one user first:
python3 discord_digest.py --exports ./digests --username "JimCollinson" -
Check exports before processing:
ls -lh digests/discord_exports/
-
Read the summary:
cat outputs/SUMMARY.md
-
Verify user posts:
grep -i "jimcollinson" digests/discord_exports/*.json
All three users now tracked across all four channels! 🎉