Over a million developers have joined DZone.
Platinum Partner

The ZeroMQ-Powered Challenge-Bot

· Web Dev Zone

The Web Dev Zone is brought to you by Stormpath—offering a pre-built Identity API for developers. Easily build powerful user management, authentication, and authorization into your web and mobile applications. Download this Forrester report on the new landscape of Customer Identity and Access Management.

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.

The Web Dev Zone is brought to you by Stormpath—offering a pre-built, streamlined User Management API for building web and mobile applications. Plan On Building User Management? Buy It Instead. Download Our White Paper To Learn More.

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}