Skip to main content

A client for the Twitch Extension named Chat Clicks

Project description

chatclicks

Python package for the Twitch extension "Chat Clicks"

Installation

pip install chatclicks

Example

All you need is the channel ID of the broadcaster to get this to work.

You must use asyncio for your program.

The following is the most basic example:

from chatclicks import ChatClicks
import asyncio

cc = ChatClicks("Your Channel ID here", sub_only=False, allow_anonymous=True, ban_list=[])

async def run():
    await cc.ban_username("barrycarlyon")
    await cc.unban_username("barrycarlyon")
    await cc.run()

@cc.event(name="init")
async def on_init(data):
    print(data)

@cc.event(name="leftClick")
async def on_left_click(data):
    print("Left Click Data:", data)

@cc.event(name="rightClick")
async def on_right_click(data):
    print("Right Click Data:", data)

@cc.event(name="drag")
async def on_drag(data):
    print("Drag Data:", data)

@cc.event(name="bits")
async def on_bits(data):
    print("Bits Data:", data)


if __name__ == "__main__":
    asyncio.run(run())

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

chatclicks-0.2.80.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

chatclicks-0.2.80-py3-none-any.whl (2.8 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