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

If you're not sure about the file name format, learn more about wheel file names.

TwitchChat-0.0.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file TwitchChat-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: TwitchChat-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.3

File hashes

Hashes for TwitchChat-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 299a3923ec5ee8e373bd8d6a93b0716184c1c777a13a0f60f1fcd3d006e2d777
MD5 7817484ba0775cf66a7394ea8fc501db
BLAKE2b-256 424661b276e2576494204f71fde585f18046573c5f10bb4876429a466965d56a

See more details on using hashes here.

Supported by

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