Write a simple Ruby app that tweets about something of your choice every hour or responds when tweeted at.
We have provided an example rails app here as it facilitates hosting on heroku.
There is no one way to complete this exercise as long as the minimum requirements are met.
Your code should be performant and intuitive.
Any questions, please ask.
Notes:
-
There are various twitter API gems available, no need to write your own access.
- Search https://www.ruby-toolbox.com for more info on your options.
-
Heroku Scheduler is a simple Heroku add-on for background jobs.
-
The point of this isn't to stress about what to tweet, so some examples are:
- Make anagrams of others tweets
- Look for accidental haiku in tweets and reformat then retweet
- Looks for song lyrics in tweets and posts song names
- Grabs tweets, puts it through a text-to-speech api and posts a link to the audio
- Two bots playing chess together.
- Random words from a dictionary
- A sample image of a colour if you tweet a hexcode at it.
- Snowball poetry
- Sports results
- Battleships
Test