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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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