skip to navigation
skip to content

Not Logged In

pyrc 0.6.4

Simple, clean Python IRC library

Latest Version: 0.6.5

# pyrc

Slim, concise IRC client. Also cute.

## Installation

```bash
$ pip install pyrc
```

## Usage

```python
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

* Modularize library better.
* Make syntax more like Flask.
 
File Type Py Version Uploaded on Size
pyrc-0.6.4.tar.gz (md5) Source 2012-08-10 3KB
  • Downloads (All Versions):
  • 21 downloads in the last day
  • 146 downloads in the last week
  • 525 downloads in the last month