Skip to content
forked from zerratar/KickLib

A .NET API Client for the streaming service kick.com to allow writing chatbots and interact with their services (in development)

Notifications You must be signed in to change notification settings

Poopshot/KickLib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KickLib

A .NET API Client for the streaming service kick.com to allow writing chatbots and interact with their services (in development)

This library uses PuppeteerSharp to work around cloudflare, this will download a local instance of chromium into the working directory of the application using KickLib. This will be used until a proper API has been exposed by kick.com that can be used by developers.

How to use

You can check the KickLib.Cli project as an example for how to use the library. Its still very experimental and the API may change at any time.

Currently Reading Channel details, Available Emotes and Chat Messages are available.

var username = "kick_streamer_username_here";

using(var client = new KickLib.KickClient())
{
    // Initialize will start the headless Chromium to fetch necessary cookies and tokens for any upcoming requests
    await client.InitializeAsync();

    client.ChatMessageReceived += (sender, e) =>
    {
        var msg = e.Message;
        Console.WriteLine($"[{DateTime.Now:HH:mm:ss}] {{chatroom.{msg.Message.ChatroomId}}} " + msg.User.Username + ": " + msg.Message.Content);
    };

    var channel = await client.GetChannelAsync(username);
    if (channel != null) 
    {
        // you can connect to as many channels as you want with the same client.
        await client.ConnectAsync(channel);
    }
}

Console.ReadKey();

About

A .NET API Client for the streaming service kick.com to allow writing chatbots and interact with their services (in development)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%