gchandrasa / pinbot

Tinkering with IRC bot for #python-id channel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PinBot

It began when The Fellowship of The PythonID discussed about having extra bot.

Requirements

  • Python 2.7.x
  • pip installer

Crash Course

Grab the source:

(venv)$ git clone git://github.com/iromli/pinbot.git
(venv)$ cd pinbot
(venv)$ pip install -r requirements.txt

Create a file to store all required configuration:

# config.yml
IRC:
  servers: irc.example.com:6667
  nick: __pinbot__
  user: pinbot
  # password: testing
  realname: "__pinbot__"
  auto_ping: 300

triggers:
  prefix: "."

components.load:
  - nickserv
  - /pinbot.components.db
  - /pinbot.components.acl

plugins:
  base: plugins
  load: /pinbot.plugins.remember

channels:
  autojoin:
    - "#pinbot"

db:
  url: sqlite:///var/botpy.db

acl:
  permissions:
    "#pinbot":
      remember:
        allow:
          - kusut
          - iromli

Afterwards, invoke the following command:

(venv)$ PYTHONPATH=. python -m pinbot -c config.yml

About

Tinkering with IRC bot for #python-id channel

License:MIT License