Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a lightweight Python IRC bot library
Python
Tag: v0.5.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
pyrc
.gitignore
LICENSE
MANIFEST.in
README.md
example.py
setup.py

README.md

pyrc

Slim, concise IRC client. Also cute.

Installation

$ pip install pyrc

Usage

import pyrc
import pyrc.utils.hooks as hooks

class HiBot(pyrc.Bot):
  @hooks.command
  def sayhi(self, channel):
    self.message(channel, "hi!")

if __name__ == '__main__':
  bot = HiBot('irc.freenode.net', channels = ['#your_channel'])
  bot.connect()

Then on IRC, after the bot logs in:

<davidpeter> HiBot, sayhi
<HiBot> hi!

TODO

  • Less strict commands. Add ability to define regex commands.
  • Fix hacky joining of channels.
Something went wrong with that request. Please try again.