Skip to main content

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!

Release files for twitchircpy 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for twitchircpy 1.0.5
File Size Uploaded
twitchircpy-1.0.5.tar.gz 25.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for twitchircpy 1.0.5
File Interpreter ABI Platform
twitchircpy-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 71.9 kB

Release files / twitchircpy-1.0.5.tar.gz

Download URL twitchircpy-1.0.5.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e81f60ea7c6bf79d30d725c4253c630c882d3b5ae763d80118287f12e728f6c5
BLAKE2b-256 checksum
How to use checksums
d8b6a5eb1a0493121281827f5f12c6a5f25edb65417d392da58a07918efb7758
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

Release files / twitchircpy-1.0.5-py3-none-any.whl

Download URL twitchircpy-1.0.5-py3-none-any.whl
Size 46.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3ee6f9ae544e40f2527360572b0c666d5b786646ee3d12e3fb77bddc04b1d5e
BLAKE2b-256 checksum
How to use checksums
abeacf322c65e347a513c1db6edbba2fa544e783eda475be9d6339290c98118e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page