semvec/pypi-packages huggingface dataset:
TwitchChat-SpitfireMk2b-san 0.0.1
A basic wrapper for the twitch chat API
Requires Python: >=3.6

# 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)
```