A wrapper for the Twitch IRC used for creating chat bots.
Project description
twitchircpy
twitchircpy is a wrapper for the Twitch IRC used for creating chat bots.
Installing
Installing from pypi:
pip3 install twitchircpy
Installing from source:
pip3 install git+https://github.com/IsaacAKAJupiter/twitchircpy.git
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.1
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
twitchircpy-1.0.2.tar.gz
(24.9 kB
view hashes)
Built Distribution
Close
Hashes for twitchircpy-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00fa21d0821a33b18bde7f8a2cd6733f25011cb1b076fff259559c0855b33035 |
|
MD5 | 1f48db9f4ac0f8b41e75e18f8b883203 |
|
BLAKE2b-256 | 77aea83def806af9aeed7c4cbd65e36173c7ae01f26b94cf8703add1ab2505a2 |