
Daily Trivia Email Bot
A small bot that emails a short piece of trivia to its subscribers every morning. There is no app and no website. It lands in your inbox and is gone again in under a minute.
Where it started
The idea was a daily habit that teaches something without demanding attention all day. An email felt right, because it arrives on its own and asks for nothing back. It goes out to a handful of family and friends, and I'm one of them.
With no interface to design, the shape of the writing is the whole thing. The prompt asks for one paragraph of three or four sentences. It opens on a question, sets the fact down plainly, then leaves somewhere to go next. It is set in Korean, in the polite register I'd use with family, warm rather than formal, since that is who reads it.
How it's built
- A single Python script, run each morning by a scheduled task on PythonAnywhere.
- GPT-5 writes the paragraph, and the mail goes out over SMTP as plain text.
- A GitHub Action deploys the latest code on every push to main.
One theme a day
There is one topic pool per weekday, fifteen topics deep. Monday is science, Tuesday history, Wednesday art, Thursday technology, Friday culture, Saturday nature and Sunday space. The theme comes back every week and the subject rarely does. The subject line is one of ten, picked at random, and everyone is on BCC so nobody sees the rest of the list.
- Python
- OpenAI
- GitHub Actions
- PythonAnywhere
