Simple, clean Python IRC library
Project description
# pyrc
Slim, concise IRC client. Also cute.
## Installation
TODO.
## Usage
```python
import pyrc
import pyrc.utils.hooks as hooks
class YourBot(pyrc.Bot):
@hooks.command
def sayhi(self, channel):
self.message(channel, "hi!")
if __name__ == '__main__':
bot = YourBot('irc.freenode.net')
bot.connect()
```
Then on IRC, after the bot logs in:
```
<davidpeter> HarpBot, sayhi
```
## TODO
* Turn into PyPi package
* Less strict commands. Add ability to define regex commands.
* Fix hacky joining of channels.
Slim, concise IRC client. Also cute.
## Installation
TODO.
## Usage
```python
import pyrc
import pyrc.utils.hooks as hooks
class YourBot(pyrc.Bot):
@hooks.command
def sayhi(self, channel):
self.message(channel, "hi!")
if __name__ == '__main__':
bot = YourBot('irc.freenode.net')
bot.connect()
```
Then on IRC, after the bot logs in:
```
<davidpeter> HarpBot, sayhi
```
## TODO
* Turn into PyPi package
* Less strict commands. Add ability to define regex commands.
* Fix hacky joining of channels.
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.5.tar.gz
(2.4 kB
view hashes)