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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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