Wiki

Clone wiki

IbLib / Home

IbLib

Welcome to the IbLib wiki!

IbLib is a IRC Bot framework designed to let you create IRC bots in a Pythonic way. It almost completely abstracts the IRC protocol from the programmer, allowing one to concentrate on their code instead of the protocol itself.

Hello World

Here is all it takes to create a Hello World bot in IRC:

import iblib

class HelloBot:
    def hello(self):
        return "Hello to you too!"

config = {
    'server': 'irc.freenode.net',
    'channels': ['#botters']
}

iblib.start(HelloBot(),config)

The bot will have the nickname "HelloBot" and one function, which is !hello. It joins #botters on irc.freenode.net and it is fully functional.

Have fun!

Documentation

Root Class
Configuration
Request/Response Objects
Hooks
CTCP replies
Timers
Nickname Memorization
Other IRC commands

Updated