Skip to main content

Simple, clean Python IRC library

Project description

# pyrc

Slim, concise IRC bot library. 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, sender):
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


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.7.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file pyrc-0.6.7.tar.gz.

File metadata

  • Download URL: pyrc-0.6.7.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyrc-0.6.7.tar.gz
Algorithm Hash digest
SHA256 a8e7d319df5832903f64920274aa76b9408820f1c654a86bc6334de689f21912
MD5 dcb2e24118f013d18e176cd4aa422efc
BLAKE2b-256 3e40632e525554fb44060f10fe572d5a494988dc2d05ead5cbafe8d01125cc8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page