Daily cron val that:
Set these in Val Town Secrets for this val:
DISCORD_CHANNEL_IDS (required): Comma-separated Discord channel IDs to summarizeDISCORD_USER_TOKEN (required): Your personal Discord tokenOptional:
DISCORD_INCLUDE_BOTS: set to "1" to include bot messages (default: exclude bots)DISCORD_MAX_MESSAGES: max messages per channel included from the last 24h (default: 750)DISCORD_MAX_THREADS: max threads/posts per channel to scan (default: 20) — important for Forum channels where replies live in threadsOPENAI_MODEL: OpenAI model name (default: gpt-4o-mini)123,456).Discord user tokens (personal account tokens) allow the val to access channels your account has access to.
Use with caution:
To use a user token:
DISCORD_USER_TOKEN to your personal token in Val Town Secrets.https://github.com/Tyrrrz/DiscordChatExporter/blob/master/.docs/Token-and-IDs.md
DISCORD_CHANNEL_IDS at a Forum channel, this val will scan the forum’s threads/posts (plus recent archived threads) and summarize per-thread “conversations”.DISCORD_MAX_THREADS).v/std/email helper can only email yourself (works fine for this use case).