Skip to content
A wrapper for the Twitch IRC used for creating chat bots.
Branch: master
Clone or download
Latest commit 579a075 Mar 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples v1.0.3, added wiki Feb 14, 2019
twitchircpy v1.0.4 Mar 15, 2019
.gitignore v1.0.3, added wiki Feb 14, 2019
LICENSE Initial Commit Dec 19, 2018
README.md Update README.md Feb 14, 2019
setup.py v1.0.4 Mar 15, 2019

README.md

twitchircpy

PyPI PyPI

twitchircpy is a wrapper for the Twitch IRC used for creating chat bots.

Installing

Installing from PyPI:

pip install twitchircpy

Installing from source:

pip install git+https://github.com/IsaacAKAJupiter/twitchircpy.git

You might have to install with these commands if the above installs for Python 2.

pip3 install twitchircpy
pip3 install git+https://github.com/IsaacAKAJupiter/twitchircpy.git

Documentation/Wiki

https://github.com/IsaacAKAJupiter/twitchircpy/wiki

Small Example

import twitchircpy

bot = twitchircpy.Bot("oauth", "nick", "!", "jups", True)

@bot.event
def on_connect():
    print("Connected!")
    
@bot.event
def on_message(message):
    if "HeyGuys" in message.content:
        bot.send_message(message.channel, f"@{message.user} HeyGuys")
        
@bot.event
def on_sub(sub):
    bot.send_message(sub.channel, f"Thank you @{sub.login} for subbing!")

bot.start()

You can find examples in the examples directory.

Library Requirements

Good news! This library only uses built-in Python libraries.

Python Version

Tested with Python 3.7

Discord

Please join the Discord if you need help with the library or just want to chat!

You can’t perform that action at this time.