Every evening at 8pm, this bot:
- Scrapes tonight's CN Tower lighting color from cntower.ca
- Generates a fun AI fact using Claude
- Sends it straight to your WhatsApp via Twilio
pip install -r requirements.txt- Sign up at twilio.com (free)
- Go to Messaging → Try it out → Send a WhatsApp message
- Follow instructions to connect your WhatsApp number to the sandbox
- Note your Account SID and Auth Token
- Sign up at console.anthropic.com
- Create an API key under API Keys
export TWILIO_ACCOUNT_SID="ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
export TWILIO_AUTH_TOKEN="your_auth_token"
export MY_WHATSAPP="whatsapp:+1XXXXXXXXXX" # your WhatsApp number with country code
export ANTHROPIC_API_KEY="sk-ant-xxxxxxxx"Or just paste them directly into cn_tower_bot.py (lines 20–26).
python cn_tower_bot.pyThe bot will fire once immediately, then every evening at 8:00 PM.
🩷 CN Tower Tonight — Saturday, March 15
🎨 Color: Pink
📌 Why: In honor of International Day of Pink, celebrating inclusion
💡 Fun fact: The CN Tower has been lit in over 200 unique colors and
combinations since LED lighting was introduced — it can produce virtually
any shade in the visible spectrum.
_Powered by CN Tower Bot 🗼_
Run it in the background on your Mac/Linux:
nohup python cn_tower_bot.py &Or use a free cloud service like Railway or Render to host it permanently.
| Component | Tool | Cost |
|---|---|---|
| Lighting schedule | CN Tower website scraper | Free |
| AI fun fact | Anthropic Claude API | ~$0.001/day |
| WhatsApp message | Twilio Sandbox | Free (sandbox) |
| Scheduler | Python schedule library |
Free |
Total cost: ~$0.03/month
Built in a weekend. 80 lines of Python. Zero regrets. 🗼