Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Simple Twitch Chat Wrapper written in Python

Project description

This is a simple twitch chat wrapper written on python that I use to build simple bots fast.


pip intall twitch_chat_wrapper

fetchin Twitch oauth password token

Follow this link and save the token


from twitch_chat_wrapper import TwitchChatWrapper

viewers_greetings = []

def message_handler(chat, username, message):
    print("@{}: {}".format(username, message))
    if username not in viewers_greetings:
        chat.send_message("@{} welcome to the stream".format(username))

twitch = TwitchChatWrapper(
    channel="hardlydifficult") += message_handler


shout out

To which is building a awesome gamedev twitch community

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
twitch_chat_wrapper-0.4.2.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page