Skip to main content

A simple receive only Twitch IRC client

Project description

TwitchIRC

CodeQL Vulnerabilities
Linting and Testing
Build and Release

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twitchirc_drgreengiant-2.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

twitchirc_drgreengiant-2.1.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file twitchirc_drgreengiant-2.1.0.tar.gz.

File metadata

File hashes

Hashes for twitchirc_drgreengiant-2.1.0.tar.gz
Algorithm Hash digest
SHA256 6020dfe228ca136ae8cb22f250d2c1f9798d964381609206a9d15c3479ae1dce
MD5 e26e4470ef118329e7d34c5c4a6648f9
BLAKE2b-256 d0032da191d1d8d4723a5f09ebe0ba075a414faa58dc4c6d46d7fb4a3691eefd

See more details on using hashes here.

File details

Details for the file twitchirc_drgreengiant-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for twitchirc_drgreengiant-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c0c2679bb8eb9172b903ed63818e73f9174c40b3504927cbd58d70f2f1e4c8b
MD5 f0ae04f964857ff68688d097a21f7fd8
BLAKE2b-256 8b9771cc6ca135708c75c7fd59167f7dd385c020664e7d08beed2d501e6d1d0f

See more details on using hashes here.

Supported by

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