Skip to main content

A wrapper for the Twitch IRC used for creating chat bots.

Project description

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!

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.5.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twitchircpy-1.0.5-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file twitchircpy-1.0.5.tar.gz.

File metadata

  • Download URL: twitchircpy-1.0.5.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for twitchircpy-1.0.5.tar.gz
Algorithm Hash digest
SHA256 e81f60ea7c6bf79d30d725c4253c630c882d3b5ae763d80118287f12e728f6c5
MD5 f59c96a273c5489de3a8e005ff92cbae
BLAKE2b-256 d8b6a5eb1a0493121281827f5f12c6a5f25edb65417d392da58a07918efb7758

See more details on using hashes here.

File details

Details for the file twitchircpy-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: twitchircpy-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 46.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for twitchircpy-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d3ee6f9ae544e40f2527360572b0c666d5b786646ee3d12e3fb77bddc04b1d5e
MD5 5250aa53173c2eb81011bdcb79b5dde0
BLAKE2b-256 abeacf322c65e347a513c1db6edbba2fa544e783eda475be9d6339290c98118e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page