Skip to main content

Yet another IRC bot library

Project description

Flattr this repo

FatBotSlim

Yet another Python IRC bot library…

Features:

  • asynchronous

  • multi-server

  • easy to use plugin system

  • 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

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!

Project details


Download files

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

Source Distribution

FatBotSlim-0.1.tar.gz (13.5 kB view details)

Uploaded Source

File details

Details for the file FatBotSlim-0.1.tar.gz.

File metadata

  • Download URL: FatBotSlim-0.1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for FatBotSlim-0.1.tar.gz
Algorithm Hash digest
SHA256 5620954fc10ac00291d0b31c4066c9ce82e1705b9d4f7c5595cabe162f8e485e
MD5 376a34dbf6bd37e8ea05382b162923c9
BLAKE2b-256 314299d1f53284a8a0ae2d1746272a09b61327bb53bcebd10faace228d49341a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page