Metadata-Version: 1.1
Name: mtirc
Version: 0.1.0
Summary: A fully functioning multi-threaded IRC client.
Home-page: http://github.com/legoktm/mtirc/
Author: Kunal Mehta
Author-email: legoktm@gmail.com
License: MIT License
Description: ======================
        Multi-Threaded IRC bot
        ======================
        
        This is a multi-threaded IRC bot that was designed to connect to
        a "feed" network (irc.wikimedia.org) and relay those to the client
        network (irc.freenode.net). An example bot would look like::
        
            #!/usr/bin/env python
            from __future__ import unicode_literals
            import Queue
        
            from mtirc import bot
            from mtirc import settings
        
            config = settings.config
            config['nick'] = 'nick'
        
            class RcvThread(bot.ReceiveThread):
                def parse(self, channel, text, sender):
                    print text
                    if text.startswith('!ping'):
                        self.pull.put((channel, 'pong'))
                        self.debug('got a ping')
                    elif channel == config['nick']:
                        #pm'ing with bot
                        if sender.host == 'me@me.com':
                            chan = text.split(' ')[0]
                            real_text = ' '.join(text.split(' ')[1:])
                            self.pull.put((chan, real_text))
        
            push = Queue.Queue()
            pull = Queue.Queue()
            b = bot.Bot(push, pull, RcvThread, config, use_rc=False)
            b.run()
        
        Features
        =========
        
        * Can use as many parse threads as set in config
        
        * Will attempt to reconnect if disconnected
        
        * Reads from a configuration file at ``~/localsettings.py``
        
        * More to come!
        
        License
        =========
        
        * Released under the MIT License
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
