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:
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!
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.3.tar.gz
(25.2 kB
view hashes)
Built Distribution
Close
Hashes for twitchircpy-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 775f236fa652eec43e134545a7c0824c79f681ca566a28df68a0ec775b4d634e |
|
MD5 | 14906f86711372f07e7991d6403e887d |
|
BLAKE2b-256 | 2ec85608139ada888b4a99cccef2132df96e513aed2c494f61cb09dfbc4ef5af |