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:

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

Uploaded Source

Built Distribution

twitchircpy-1.0.1-py3-none-any.whl (46.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for twitchircpy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1749f13ea98263b4004a101b034fd5c9a31d077db4ebed53aef9c19522732364
MD5 99660d2529e781e4883e75d9527d4891
BLAKE2b-256 4c9e2728a9c4f9455012b2212759afeb80904cb1c1c6bbaba23e86618b97047a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for twitchircpy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cdf1f5b9b805cdbaf31f2a579dd4e036b75ea7a3e459391c0f45d3cb0bbafb70
MD5 72d83d98a6727f5f78d7511b9f202726
BLAKE2b-256 22e59d3eb9f0e505fd73aa8fe7df04985197719130a6e52447c6a76eb71cbe00

See more details on using hashes here.

Supported by

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