Skip to main content

A basic wrapper for the twitch chat API

Project description

TwitchChat

TwitchChat is a simple wrapper for the Twitch Chat IRC API. It is somewhat similar in syntax to discord.py.

##Documentation ###Basic Example You can use this as a template.

import twitch

client = twitch.user(OAUTH_TOKEN, USERNAME)

def on_ready(streamer, name):
    print(f"Logged into {streamer}'s chat as {name}!")

def on_message(message):
    print(message.__dict__)

client.run("StreamerUsername", on_message=on_message, on_ready=on_ready)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

TwitchChat-0.0.1-py3-none-any.whl (14.8 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