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)
if __name__ == "__main__":
asyncio.run(run())
Project details
Release history Release notifications | RSS feed
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.75.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file chatclicks-0.2.75.tar.gz
.
File metadata
- Download URL: chatclicks-0.2.75.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d75ad4083487342cd4eb81498de6e7730f2ac6be1cdecdd2fdca2bc36366b223 |
|
MD5 | f15f5ca4c942b515b9f3dca79ea1cb77 |
|
BLAKE2b-256 | 2f36b780548c41a3c6dab045d8a2c6ea0e02102a7c076e95664e81bb7320f515 |
File details
Details for the file chatclicks-0.2.75-py3-none-any.whl
.
File metadata
- Download URL: chatclicks-0.2.75-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e286687ad7bd70439ab5c072a7cc7db196267988755c131f90519e3ee44f63f |
|
MD5 | 8117552f1c909c885711b60e221f0665 |
|
BLAKE2b-256 | 99133d887a9da6b3c9372e3722fbd5fd4041970a2b07d9976e4e363ceb1b66a4 |