Simple, clean Python IRC library
Project description
# 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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyrc-0.6.4.tar.gz
(3.4 kB
view hashes)