Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 651 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 651 Bytes

What Do You Want, A Medal?

This Twitter bot searches for tweets containing phrases like “I should get an award for...”, parses the tweets into third-person phrasing, and replies to them with a drawing of an appropriate medal.

See it in action.

Under the hood

bot does a search for up to 15 tweets that request an award. Then get_medal_text parses the tweet and returns a tuple of the user's Twitter handle and the text to go on the medal.

draw_medal takes the tuple as input and creates an appropriate medal image (using ImageMagick).

Created with https://github.com/zwass/heroku-twitterbot-starter