All Projects → joshuaskelly → twitch-observer

joshuaskelly / twitch-observer

Licence: MIT license
Turn Twitch chatter into Python events

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to twitch-observer

OxidizeBot
High performance Twitch bot in Rust
Stars: ✭ 123 (+392%)
Mutual labels:  twitch, twitch-bot
vulcan
Server-less Twitch chat-bot using Azure functions & transient containers
Stars: ✭ 23 (-8%)
Mutual labels:  twitch, twitch-bot
glitch
!NO MORE MAINTAINED! Reactive API Wrapper for Twitch in Kotlin/JVM
Stars: ✭ 12 (-52%)
Mutual labels:  twitch, twitch-bot
music-id
🚀 Music ID for Twitch (TwitchMusicID) is a Chatbot which automatically identifies music in the background of Twitch Streams, VODs, and Clips.
Stars: ✭ 49 (+96%)
Mutual labels:  twitch, twitch-bot
twitchtube
Twitch YouTube bot. Automatically make video compilations of the most viewed Twitch clips and upload them to YouTube using Python 3.
Stars: ✭ 398 (+1492%)
Mutual labels:  twitch, twitch-bot
nginx-obs-automatic-low-bitrate-switching
Simple app to automatically switch scenes in OBS based on the current bitrate fetched from the NGINX stats page.
Stars: ✭ 167 (+568%)
Mutual labels:  twitch, twitch-bot
PythonTwitchBotFramework
asynchronous twitchbot framework made in pure python
Stars: ✭ 78 (+212%)
Mutual labels:  twitch, twitch-bot
supibot
Multiplatform, utility & novelty chat bot.
Stars: ✭ 77 (+208%)
Mutual labels:  twitch, twitch-bot
TwitchBot
Custom C# chat bot for Twitch TV
Stars: ✭ 33 (+32%)
Mutual labels:  twitch, twitch-bot
Harmonbot
Multi-Platform Factotum Bot
Stars: ✭ 30 (+20%)
Mutual labels:  twitch, twitch-bot
PhantomBotDE
PhantomBotDE ist ein aktiv Entwickelter interaktiver Open Source Twitch Bot mit einer lebendigen Community welche Unterhaltung und Moderation für deinen Kanal bietet, dieser erlaubt dir dich auf das was wirklich zählt zu Konzentrieren - dein Spiel und deine Zuschauer.
Stars: ✭ 24 (-4%)
Mutual labels:  twitch, twitch-bot
Twitch-View-Bot
First open-source really working view bot for Twitch
Stars: ✭ 63 (+152%)
Mutual labels:  twitch, twitch-bot
twitch-irc-rs
Twitch IRC library for the Rust programming language
Stars: ✭ 58 (+132%)
Mutual labels:  twitch, twitch-bot
Lagertha
A UI/UX redesign of the popular Twitch-bot PhantomBot
Stars: ✭ 10 (-60%)
Mutual labels:  twitch, twitch-bot
TwitchPy
This is a package you can use to connect with the Twitch API, manage a channel, create bots, etc
Stars: ✭ 22 (-12%)
Mutual labels:  twitch, twitch-bot
Firebot
A powerful all-in-one bot for Twitch streamers
Stars: ✭ 162 (+548%)
Mutual labels:  twitch, twitch-bot
TwitchMarkovChain
Twitch Bot for generating messages based on what it learned from chat
Stars: ✭ 87 (+248%)
Mutual labels:  twitch, twitch-bot
Twitch-Farmer
A bot that helps you to get more followers on Twitch
Stars: ✭ 124 (+396%)
Mutual labels:  twitch, twitch-bot
beybot
This is a twitch bot built with the ComfyJS library 💅🏾
Stars: ✭ 44 (+76%)
Mutual labels:  twitch
rustplatz
(Inoffizielle) Website für das Rust-Projekt von Dhalucard, Bonjwa und RocketBeans
Stars: ✭ 15 (-40%)
Mutual labels:  twitch

twitch-observer

Turn Twitch chatter into Python events.

twitch-observer

License: GPL v3 Python 2 Python 3 PyPI version Build Status Documentation Status

twitchobserver makes interacting with Twitch chat super easy. It is built and tuned for realtime applications. You can make chatbots chat. You can build Twitch Plays video games.

Features

  • Pure Python: No extra dependencies. Just plain and simple Python.
  • Small API: With a few classes and a handful of methods, you can learn it over a coffee break.
  • Event Based: Makes writing apps easy and straightforward.
  • Context Manager: Further simplifies working with observers.

Installation

$ pip install twitchobserver

Usage

from twitchobserver import Observer

observer = Observer('Nick', 'oauth:abcdefghijklmnopqrstuvwxyz0123')
observer.start()
observer.join_channel('channel')
observer.send_message('Hello and goodbye', 'channel')
observer.leave_channel('channel')

Documentation

API documentation can be found over on ReadtheDocs.org.

Tests

$ python -m unittest discover -s tests

Examples

Echo bot

Whenever a message is sent, echo it back. The Observer is created as a context manager object which will implicitly handle calling start() and stop().

import time
from twitchobserver import Observer

with Observer('Nick', 'oauth:abcdefghijklmnopqrstuvwxyz0123') as observer:
    observer.join_channel('channel')

    while True:
        try:
            for event in observer.get_events():
                if event.type == 'TWITCHCHATMESSAGE':
                    observer.send_message(event.message, event.channel)

            time.sleep(1)

        except KeyboardInterrupt:
            observer.leave_channel('channel')
            break

More examples can be found in the Cookbook.

Contributors

Joshua Skelton Felix Siebeneicker Kovalchuk Evgeny
Joshua Skelton Felix Siebeneicker Kovalchuk Evgeny

Changelog

For a detailed history of changes made to the twitchobserver see the changelog.

License

MIT

See the license document for the full text.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].