/python-chatbot

A simple, extensible, python-powered IRC bot.

Primary LanguagePython

Python Chatbot

A simple, extensible bot for your IRC channels.

Installation

With Pip:

pip install git+https://github.com/lapilofu/python-chatbot.git@master#egg=chatbot

Usage

To run a bot, you must write a short python script. For example simple_bot.py:

from chatbot.bots import Bot
from chatbot.contrib import *

bot = Bot(
	nickname = 'bestbot',
	hostname = 'chat.freenode.net',
	port = 6665,
	server_password = 'my_bots_password',
	channels = ('#freenode', '#python'),
	features = (
		PyPIFeature(),
		WikipediaFeature(),
		DictionaryFeature(),
		DiceFeature(),
		ChoiceFeature(),
		SlapbackFeature(),
	)
)

bot.run()

Then run the script:

python simple_bot.py