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
Release history Release notifications | RSS feed
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)
Close
Hashes for TwitchChat-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 299a3923ec5ee8e373bd8d6a93b0716184c1c777a13a0f60f1fcd3d006e2d777 |
|
MD5 | 7817484ba0775cf66a7394ea8fc501db |
|
BLAKE2b-256 | 424661b276e2576494204f71fde585f18046573c5f10bb4876429a466965d56a |