As a follow up to my previous @fsibot endeavour, for the #fsAdvent project this year, I decided it would be fun to build a Twitter bot to enable querying the World Bank data over Twitter. Send a tweet to @WorldBankFacts with a query along the lines of "COUNTRY France * INDICATOR Population * OVER 2000 - 2010", and the bot will (if it is in the mood) send you back a hand-crafted chart, with the freshest data available from the World Bank.
• using a Type Provider to access data from the World Bank,
• leveraging FParsec to create a simple external DSL, and convert user input to F# types,
• deploying a nano-service to an Azure VM with TopShelf.
I will also discuss some of the pitfalls I encountered, and the more-or-less successful ways I overcame them. So come over, and learn yourself how to build a Twitter bot for great good (or evil)!
YOU MAY ALSO LIKE:
Building a Twitter bot with F#
Mathias Brandewinder has been writing software in C# for about 10 years, and loving every minute of it, except maybe for a few release days. He is an F# MVP, the author of "Machine Learning Projects for .NET Developers" (Apress), enjoys arguing about code and how to make it better, and gets very excited when discussing TDD or F#.