Skip to main content

Simple, clean Python IRC library

Project description

# pyrc

Slim, concise IRC bot library. Also cute.

## Installation

$ pip install pyrc

## Usage

import pyrc
import pyrc.utils.hooks as hooks

class HiBot(pyrc.Bot):
def sayhi(self, channel, sender):
self.message(channel, "hi!")

if __name__ == '__main__':
bot = HiBot('', channels = ['#your_channel'])

Then on IRC, after the bot logs in:

<davidpeter> HiBot, sayhi
<HiBot> hi!


* 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.

Files for pyrc, version 0.6.7
Filename, size File type Python version Upload date Hashes
Filename, size pyrc-0.6.7.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page