This is the source for my ongoing run of awesome happiness-inspiring twitter bots. They are very simple. Listen for someone to say "Good Morning" and then tweet something wonderful to them. That's it. Very easy.
You can also find out more about happiness bot by watching my lightning talk from RubyConf 2011. My talk starts at 21:45. You'll love it!
Currently, we are on the 7th iteration: @happiness2_u_7
It uses my awesome tweetbot gem to listen for the phrase "Good Morning." Tweetbot gem supports adding a series of reponses that are selected at random. I've chosen a lot of motivating phrases to respond with. I've also set the frequency to 1%. This means that every time "Good Morning" is said on twitter, there is a 1 in 100 chance that happiness bot will say something nice to you. Isn't that nice?
Yup!
- Thanks to Franck Verrot for adding French support.
- Thanks to Björn Rochel for adding German support.
- Thanks to Gamaliel A. Toro Herrera for adding Spanish support.
- Thanks to Kristof Schockaert for adding Dutch support.
- Thanks to Amit Kumar for adding Hindi support.
- Thanks to Federico Ravasio for adding Italian support.
- Thanks to Bruno Lara Tavares for adding Portugese support.
- Thanks to Steen Hulthin Rasmussen for adding Danish support.
- Thanks to Mats Sigge for adding Swedish support.
- Thanks to Özkan Altuner for adding Turkish support.
- Thanks to Daniel Dyba for adding Polish support.
- Thanks to Aviv Ben-Yosef and Yoni Tsafir for adding Hebrew support.
I've run into some issues with encoding errors with the Faraday gem, but it appears they are fixed. I'll keep an eye on this, but, for now, we are doing awesome with languages!
Now, if you want to send me a pull request for your language, I'll add it. You can be famous for making people happy in your favorite language!
Thanks a lot to Kristof Schockaert for helping debug some UTF issues. Awesome community support!
Okay. Feel free to add your own phrases. Please make them nice, though. Nobody likes to have mean things said to them.