skip to navigation
skip to content

Not Logged In

pyrc 0.6.2

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

* Less strict commands. Add ability to define regex commands.
* Fix hacky joining of channels.
 
File Type Py Version Uploaded on Size
pyrc-0.6.2.tar.gz (md5) Source 2012-06-21 3KB
  • Downloads (All Versions):
  • 7 downloads in the last day
  • 71 downloads in the last week
  • 478 downloads in the last month