Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.04 KB

File metadata and controls

31 lines (20 loc) · 1.04 KB

discord-niklas-digest

Daily GitHub Actions cron that polls every Discord channel the bot can see, dumps the last 24h of messages to digests/latest.md + digests/YYYY-MM-DD.md, and commits the result. A Claude scheduled task on Niklas's Mac fetches digests/latest.md each morning.

Moving parts

  • poll.py — talks to the Discord REST API, writes the markdown digest. No LLM summarization — raw messages, chronological.
  • .github/workflows/poll.yml — daily cron at 05:30 UTC (07:30 Berlin CEST), plus workflow_dispatch for manual runs.
  • digests/latest.md — pointer the Claude scheduled task reads.
  • digests/YYYY-MM-DD.md — daily archive.

Secrets

Repo secret DISCORD_BOT_TOKEN is set by the bootstrap script.

Manual run

gh workflow run poll.yml
gh run watch

Inviting the bot

If poll.py logs 403 / "bot not in any server", open:

https://discord.com/api/oauth2/authorize?client_id=1493705177050386562&scope=bot&permissions=66560

Pick the server, click Authorize, then gh workflow run poll.yml again.