Skip to main content

Yet another generic Twitch IRC interface that probably works

Project description

TwitchPyRC

Yet another generic Twitch IRC interface that probably works

Installation

pip install TwitchPyRC

You will also need an oauth token which can be obtained from https://twitchapps.com/tmi/. Simply replace [oauth token] in code samples with your own token.

Usage

TwitchPyRC can be used in a few different ways. The easiest being as follows:

import TwitchPyRC

bot = TwitchPyRC.CommandBot("[oauth token]", ["channel_1", "channel_2", "channel_3"])


@bot.command(["!test", TwitchPyRC.Variable("value"), TwitchPyRC.Variable("value2", int, default=5)], cooldown=5)
def my_command(value, value2):
    print("Test command used with arguments: ", value, value2)


bot.start()

It is that easy!

More documentation coming soon

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

TwitchPyRC-1.0.7.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

TwitchPyRC-1.0.7-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file TwitchPyRC-1.0.7.tar.gz.

File metadata

  • Download URL: TwitchPyRC-1.0.7.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1

File hashes

Hashes for TwitchPyRC-1.0.7.tar.gz
Algorithm Hash digest
SHA256 88e69aa3c0f49875cd47fc72c78ec4a1823747cf1e6536c2eb1148ecf60601a5
MD5 6e970239bc087a8b5113fad8ec4e2835
BLAKE2b-256 85d9d347f69edfd006f1607d012b8fb82b299881c0bf653410ab94225e82219c

See more details on using hashes here.

File details

Details for the file TwitchPyRC-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: TwitchPyRC-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.7.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1

File hashes

Hashes for TwitchPyRC-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3112da3f9587b123d18a05d9ee735e9443fdac8101decdd78e81e3ee35437b47
MD5 53f71127191e10b20032b13590c8425a
BLAKE2b-256 3dc392305b4f8c17c2965dffe7becce413e91a2111fc7b587a7d8cb95dff8e19

See more details on using hashes here.

Supported by

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