Contribute Media
A thank you to everyone who makes this possible: Read More

"It's about time to take your medication!" or how to write a friendly reminder bot ;-)

Description

Florian Wilhelm - "It's about time to take your medication!" or how to write a friendly reminder bot ;-) [EuroPython 2015] [24 July 2015] [Bilbao, Euskadi, Spain]

The author shows how to use the [SleekXMPP][1] library in order to write a small chatbot that connects to Google Hangouts and reminds you or someone else to take medication for instance. The secure and recommended OAuth2 protocol is used to authorize the bot application in the [Google Developers Console][2] in order to access the Google+ Hangouts API. The author will elaborate then on how to use an event- driven library to write a bot that sends scheduled messages, waits for a proper reply and repeats the question if need be. Thereby, a primer on event-driven architectures will be given.

[1]: http://sleekxmpp.readthedocs.org/ [2]: https://console.developers.google.com/

Improve this page