Enterprise Integration Zone is brought to you in partnership with:

Mitch Pronschinske is a Senior Content Analyst at DZone. That means he writes and searches for the finest developer content in the land so that you don't have to. He often eats peanut butter and bananas, likes to make his own ringtones, enjoys card and board games, and is married to an underwear model. Mitch is a DZone Zone Leader and has posted 2573 posts at DZone. You can read more from them at their website. View Full User Profile

The ZeroMQ-Powered Challenge-Bot

08.13.2013
| 1515 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.