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.5.3.tar.gz
(6.5 kB
view details)
Built Distribution
File details
Details for the file pyircsdk-1.5.3.tar.gz
.
File metadata
- Download URL: pyircsdk-1.5.3.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 402c55eba1efe356a92623741445b7a6f19a3dcc5d1acae0975f0dfb1b9f4ec2 |
|
MD5 | 82e1197677002038c93c2415b54ac529 |
|
BLAKE2b-256 | bf2ce42ae5e18522c2a46494535646ba3bdc4a480abab33301e40d00f319e560 |
File details
Details for the file pyircsdk-1.5.3-py3-none-any.whl
.
File metadata
- Download URL: pyircsdk-1.5.3-py3-none-any.whl
- Upload date:
- Size: 6.8 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 | 8366a99a266e696947505b88d356353317ae11d9f3368734017887aa1b02bc53 |
|
MD5 | 0f98d83820b9f322d7fa635e1a0bfbb5 |
|
BLAKE2b-256 | 475fe576234c754db1cf05f548211a1afda558eb935bc9e8759356855620afdf |