kick.py

command module
v0.0.0-...-62d9e70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 5 Imported by: 0

README

Kick.py

Discord Server Invite

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

Documentation

Our docs are being hosted on https://kickpy.cibere.dev

Features

  • Emotes (Global and per streamer)
  • Videos
  • Livestreams
  • Users
  • Chatters
  • Reading Messages
  • Sending Messages
  • Cloudflare Bypass
  • Assets
  • Full Ban Support
  • Leaderboards
  • Regenerate Token on expiration
  • Proxy Support

Installation

! 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.

Setting up the bypass script

these steps assume your python executable is python, but that might not be the case

  1. Install golang
  2. Run 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

  3. To install the dependencies run python -m kick bypass install.
  4. To start the script run 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.

Basic Example

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL