A simple, extensible bot for your IRC channels.
With Pip:
pip install git+https://github.com/lapilofu/python-chatbot.git@master#egg=chatbotTo 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