Skip to content
Spreading joy and love
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



What is it?

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. Since December of 2011, the HappinessBot network has tweeted happy thoughts to over 2 Million people!

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!

Where is HAPPINESSBOT on twitter?

You can see what a running HappinessBot looks like at @happiness2_u_7.

How does it work?

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 HappinessBot will say something nice to you. Isn't that nice?

Hey, I notice you are supporting a bunch of languages! Can you support my language?


  1. Thanks to Franck Verrot for adding French support.
  2. Thanks to Björn Rochel for adding German support.
  3. Currently disabled due to encoding errors. see below Thanks to Gamaliel A. Toro Herrera for adding Spanish support.
  4. Thanks to Kristof Schockaert for adding Dutch support.
  5. Thanks to Amit Kumar for adding Hindi support.
  6. Thanks to Federico Ravasio for adding Italian support.
  7. Thanks to Bruno Lara Tavares for adding Portugese support.
  8. Thanks to Steen Hulthin Rasmussen for adding Danish support.
  9. Thanks to Mats Sigge for adding Swedish support.
  10. Thanks to Özkan Altuner for adding Turkish support.
  11. Thanks to Daniel Dyba for adding Polish support.
  12. Thanks to Aviv Ben-Yosef and Yoni Tsafir for adding Hebrew support.
  13. Thanks to Bassam Mehanni for adding Arabic support.
  14. Thanks to Andrey Hitrin for adding Russian support.
  15. Thanks to David Maina for adding Swahili support.
  16. Thanks to Steve Wiggins for adding Romanian support.
  17. Thanks to Kristof Schockaert's friend Michael Van Der Schyff for adding Afrikaans support.
  18. Thanks to Hiro Asari for adding Japanese support.
  19. Thanks to Sascha Weave for adding Chinese support.
  20. Thanks to Kridsanapong Wongthongdee for adding Thai support.
  21. Thanks to Kristof Schockaert's friend Sophie Van Damme for adding Hungarian support.
  22. Thanks to Jan Tuovinen for adding Finnish support.
  23. Thanks to Mohamad Fadhil for adding Malaysian support.
  24. Thanks to Rino Mardo for adding Tagalog support.
  25. Thanks to Chip Castle for adding Czech support.
  26. Thanks to Nima Johari for adding Farsi 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!

You want to do something like this?

What a great idea. You can either fork this project or start your own based on it. Feel free to add your own phrases. Please make them nice, though. Nobody likes to have mean things said to them.

HappinessBot, though, is dedicated to responding to people saying Good Morning. If you make your own, please let me know.

For more information, check out the TweetBot Gem.

You can’t perform that action at this time.