Skip to content

shughes-uk/python-twitchchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

A python module aimed to wrap twitch.tvs custom IRC implementation and provide easy event based access to it

Usage

from twitchchat import twitch_chat
import logging


def new_message(msg):
    print(msg)


def new_subscriber(name, months):
    print('New subscriber {0}! For {1} months'.format(name, months))

logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
tirc = twitch_chat('animaggus', 'yourtwitchoauth', ['geekandsundry', 'riotgames'])
tirc.subscribeChatMessage(new_message)
tirc.subscribeNewSubscriber(new_subscriber)
tirc.start()
tirc.join()

#Future

  • Expose message sending somehow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages