Skip to content

IRC for Twitch.tv bots with Twitch-tags and command support

License

Notifications You must be signed in to change notification settings

The-CJ/twitch_irc.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitch irc Client

Simple to use IRC connection for Twitch optimized for the PhaazeOS project but usable to any purpose

Inspired by the code of Rapptz's Discord library (function names and usage)

Install

There are many ways. here my "prefered" one:

py -m pip install git+https://github.com/The-CJ/twitch_irc.py.git#egg=twitch_irc

Example

import twitch_irc

class MyBot(twitch_irc.Client):

  async def onReady(self):
    await self.joinChannel('my_channel_name')

  async def onMessage(self, message):
    print(message.content)

    # do more with your code


x = MyBot(token="oauth:supersecret", nickname="cool_username")
x.run()

©️ 2018-2021 The_CJ