Kick.py will be an async api wrapper for kick.com once the api is public, and is documented. Though once its there, I will gladly accept help in making this :D
Our docs are being hosted on https://kickpy.cibere.dev
! This project is still in early alpha, so it might not work as expected but here is how installation goes.
Install from github requires git to be installed
pip install git+https://github.com/cibere/kick.py
If you are api whitelisted (meaning you are whitelisted from cloudflare), then you can pass whitelisted=True
to your Client
constructor. Otherwise you should setup the bypass script.
these steps assume your python executable is python
, but that might not be the case
python -m kick bypass create
to create the script. See python -m kick bypass create --help
for information about running the command.
Options include: proxy, port, filepath
python -m kick bypass install
.go run bypass.go
.If you set a port other than 9090
for the bypass script, make sure to pass bypass_port=THE_PORT
into your Client
constructor.
import kick
import asyncio
client = kick.Client()
@client.event
async def on_message(message):
print(f"Received message from {message.author.username}")
@client.event
async def on_ready():
print("I'm Ready!")
user = await client.fetch_user("xQc")
await user.chatroom.connect()
client.run()