别让 Grok Bot 每 5 分钟轮询:改用事件触发省成本
作者估算「每 5 分钟检查一次」会让例程每月唤醒 8640 次、花费约 397 美元,并列出 10 个改为变更触发的事件驱动开源项目。
stop telling Grok Bot to "check every 5 minutes" that one line wakes your routine 8,640 times a month. about $397, mostly for nothing the fix is boring. read one signal, react only to change, and let real events wake the bot I pulled 10 GitHub repos that do exactly that part well: 1. http://changedetection.io watches any page and only fires when the content actually changes. perfect model for a "did anything move" check http://github.com/dgtlmoon/changedetection.io 2. urlwatch diffs web pages from the terminal and reports only what changed. tiny, scriptable, easy for Grok Bot to copy the idea http://github.com/thp/urlwatch 3. webhook a small server that runs your commands when an HTTP request hits it. the cleanest way to replace a clock with an event http://github.com/adnanh/webhook 4. n8n workflow automation with webhook, cron and app triggers. good for wiring Slack, GitHub and email into one place http://github.com/n8n-io/n8n 5. healthchecks cron monitoring that alerts you when a job stops checking in. you find out a routine died before the bill does http://github.com/healthchecks/healthchecks 6. APScheduler python scheduling with cron, interval and one-shot triggers plus persistent job stores http://github.com/agronholm/apscheduler 7. robfig/cron the go cron library half the internet runs on. read it once and you stop writing */5 by reflex http://github.com/robfig/cron 8. apprise one library for alerts to Slack, Telegram, Discord, email and 100+ more. send a note on change, nothing on no_change http://github.com/caronc/apprise 9. huginn self-hosted agents that watch sources and act on events. the original "bot that wakes on change" http://github.com/huginn/huginn 10. temporal durable timers, retries and long-running workflows that survive crashes. what a night run should feel like http://github.com/temporalio/temporal instead of > check every 5 minutes > keep an eye on it > wait for my approval give Grok Bot > a webhook trigger > an hourly schedule > 1 hash check, 2K tokens > a draft at night, never wait > 1 csv line per run less clock, more signal that's when the bill stops being a guess ↓
这条是引用着另一条写的:x.com/gippp69/status/2109235458383216811