Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Yet another IRC bot library

Project Description

FatBotSlim

Yet another Python IRC bot library…

Features:

  • asynchronous
  • multi-server
  • easy to use plugin system
  • rights management for user-defined commands
  • automated help messages generation for custom plugins
  • colored logging
  • colored IRC messages
  • command line parser to set your custom bot settings from the console

Dependencies:

  • gevent
  • chardet

Installation:

  • From GitHub:

    git clone https://github.com/mattoufoutu/fatbotslim.git
    cd fatbotslim
    python setup.py install
    
  • From PyPI:

    pip install fatbotslim
    

Documentation:

The documentation is hosted on readthedocs and is available in the following formats:

Example:

This very simple bot answers Hello <username>! when someone says !hello in a public message.

Using the fatbotslim.cli helpers also gives your bot an integrated command line arguments parser.

For more detailed informations about writing custom handlers and more complex bots, please refer to the documentation.

from fatbotslim.cli import make_bot, main
from fatbotslim.handlers import CommandHandler, EVT_PUBLIC

class HelloCommand(CommandHandler):
    triggers = {
        'hello': [EVT_PUBLIC],
    }

    def hello(self, msg):
        self.irc.msg(msg.dst, "Hello {0}!".format(msg.src.name))

bot = make_bot()
bot.add_handler(HelloCommand)
main(bot)

Just try it!

Release History

Release History

This version
History Node

0.2

History Node

0.1.1

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
FatBotSlim-0.2.tar.gz (14.4 kB) Copy SHA256 Checksum SHA256 Source Sep 21, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting