A Discord Bot That Posts on a Schedule — Without a Cron Job Per Event
The naive version of a scheduled Discord bot is a `setTimeout` per upcoming event. It works in testing and falls apart in production for three separate reasons. Here is a design that does not. ## Why setTimeout per event fails **Restarts wipe everything.** Your host redeploys, the process restarts...
Read article