Enterprise Integration Zone is brought to you in partnership with:

Mitch Pronschinske is the Lead Research Analyst at DZone. Researching and compiling content for DZone's research guides is his primary job. He likes to make his own ringtones, watches cartoons/anime, enjoys card and board games, and plays the accordion. Mitch is a DZone Zone Leader and has posted 2576 posts at DZone. You can read more from them at their website. View Full User Profile

The ZeroMQ-Powered Challenge-Bot

08.13.2013
| 1672 views |
  • submit to reddit

BitBucket user flowblok posted code for his IRC bot named "challenge-bot."  It's pretty short.  Only 155 lines.  He has Python to thank for that.  Another cool technology you can see in use within his code is ZeroMQ.

challenge-bot


You can see he's using gevent-zeromq which combines ZeroMQ and the GEvent coroutine-based networking library.  Line 43 is when ZeroMQ starts to strut its stuff.  It's just another example of the diversity of applications that ZeroMQ can power.