Skip to main content

twitchircpy

PyPI PyPI

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

Release files for twitchircpy 1.0.1

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.1
File Size Uploaded
twitchircpy-1.0.1.tar.gz 24.6 kB Details

Built distribution (wheel)

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

Total release size: 70.6 kB

Release files / twitchircpy-1.0.1.tar.gz

Download URL twitchircpy-1.0.1.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1749f13ea98263b4004a101b034fd5c9a31d077db4ebed53aef9c19522732364
BLAKE2b-256 checksum
How to use checksums
4c9e2728a9c4f9455012b2212759afeb80904cb1c1c6bbaba23e86618b97047a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

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

Download URL twitchircpy-1.0.1-py3-none-any.whl
Size 46.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cdf1f5b9b805cdbaf31f2a579dd4e036b75ea7a3e459391c0f45d3cb0bbafb70
BLAKE2b-256 checksum
How to use checksums
22e59d3eb9f0e505fd73aa8fe7df04985197719130a6e52447c6a76eb71cbe00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

Release history Release notifications | RSS feed

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

This release

1.0.1 This release

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