pyIRCSDK is a Python library for creating IRC bots and clients. It is designed to provide granular access to raw mesages and to provide an event emitter like interface for handling messages.
Project description
pyIRCSDK
pyIRCSDK is a Python library for creating IRC bots and clients. It is designed to provide granular access to raw mesages and to provide an event emitter like interface for handling messages.
Installation
pip install pyIRCSDK
Usage
from pyIRCSDK import IRCClient
client = IRCClient("irc.freenode.net", 6667, "pyIRCSDK", "pyIRCSDK")
client.event.on("message", lambda message: print(message))
client.event.on("connected", lambda: client.send("JOIN #pyIRCSDK"))
client.event.on("raw", lambda message: print(message))
client.connect()
More event to come soon:
- connected
- disconnected
- join
- part
- kicked
- message
- raw
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
pyircsdk-1.0.2.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file pyircsdk-1.0.2.tar.gz
.
File metadata
- Download URL: pyircsdk-1.0.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b61f16cba2127c185aa1ed601d4a1203210949e923feaa1870a3ffca6ea08cd |
|
MD5 | 197bffc1e7d1d71380cbc0b2688bb001 |
|
BLAKE2b-256 | 7384c2b618c9ef2166d8fa39f917a766abdce668e1aed1fe0fa55b5a054d0637 |
File details
Details for the file pyircsdk-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: pyircsdk-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3db288b7176d64f15b683658bf738aad5c91a554301102b3c1b8e219008a4fc6 |
|
MD5 | 33bf6f626912b6084d920bada0e11e74 |
|
BLAKE2b-256 | 2d7324e0adcba08ea8b2f8fbb3b535f3f5290ca3c00f94480f97430981c96d2e |