Sends a daily Discord digest of new public vals. It grabs previews of READMEs when it exists. When there's no README, it sends the code to GPT-4o for a summary.
main.tsx - Main cron function and Discord webhookfetch-vals.ts - Fetches and filters new vals using Val Town SDKai-summarizer.ts - Generates OpenAI summaries for vals without READMEsuntitled- (auto-generated names), blank vals with no files, or vals with an empty main.tsxmain.tsx files for AI summaries and limit code sent to OpenAI to 5KB to avoid token limitsDISCORD_WEBHOOK environment variableOPENAI_API_KEY environment variabletestMode = false in main.tsx for production