A simple receive only Twitch IRC client
Project description
TwitchIRC
This module connects to the Twitch IRC as a basic listener client. It handles the ping pong and initial connection but otherwise does not send anything to Twitch therefore does not appear in the viewer list nor can it post to chat. As such, no oauth is required, it just works out of the box.
It can join multiple channels at the same time and will report which channel a message was received in.
Installation
Available on PyPi at https://pypi.org/project/twitchirc-drgreengiant/
pip install twitchirc_drgreengiant
Typical Usage
from twitchirc_drgreengiant import twitchirc
channels = frozenset(["drgreengiant", "hpxdreamer"])
with twitchirc.TwitchIrc(channels) as irc:
while True:
msg = irc.get_message(irc)
if not msg:
continue
print("Received a message:")
print(f"{msg.channel=} from {msg.username=}")
print(f"{msg.payload=}")
print()
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
Built Distribution
File details
Details for the file twitchirc_drgreengiant-2.1.0.tar.gz
.
File metadata
- Download URL: twitchirc_drgreengiant-2.1.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6020dfe228ca136ae8cb22f250d2c1f9798d964381609206a9d15c3479ae1dce |
|
MD5 | e26e4470ef118329e7d34c5c4a6648f9 |
|
BLAKE2b-256 | d0032da191d1d8d4723a5f09ebe0ba075a414faa58dc4c6d46d7fb4a3691eefd |
File details
Details for the file twitchirc_drgreengiant-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: twitchirc_drgreengiant-2.1.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c0c2679bb8eb9172b903ed63818e73f9174c40b3504927cbd58d70f2f1e4c8b |
|
MD5 | f0ae04f964857ff68688d097a21f7fd8 |
|
BLAKE2b-256 | 8b9771cc6ca135708c75c7fd59167f7dd385c020664e7d08beed2d501e6d1d0f |