Company
Date Published
Author
Marina Bichoffe
Word count
4449
Language
English
Hacker News points
None

Summary

The author created a World Cup bot using Python, Twilio SMS, and Slack APIs to provide real-time updates to fans during the 2018 World Cup. The bot uses Flask as the web microframework, Slack's Real Time Messaging API, and Twilio's Messaging Service to send SMS updates to subscribers. The bot is controlled by a Slack bot that posts updates to a designated channel and can be subscribed to via an HTTP POST request. The author also wrote a notifier module to retrieve live match data from the FIFA World Cup API and post updates to both Slack and SMS subscribers. The code includes error handling, validation of phone numbers, and logging to files for persistent storage of match data and subscriber information.