#!/usr/bin/env bash set -euo pipefail # Summarize the last 24h of selected Discord channels via DiscordChatExporter + kagi assistant. # # Requirements: # - DiscordChatExporter.Cli (https://github.com/Tyrrrz/DiscordChatExporter) # default path below; override with DCE_CMD if installed elsewhere. # - kagi-cli authenticated with a session token. # # Config: # ~/.config/discord-summary/config (sourced bash) # DISCORD_TOKEN="your-user-token" # CHANNELS=( # "111111111111111111:general" # "222222222222222222:dev-chat" # ) # format ":