mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 20:42:04 -04:00
Added Twitch PubSub support. Heavily ripped off code from GambaSesh though rewrote it to use Websocket.Client and will refactor the JSON parsing once I know exactly what the payload looks like. Presently untested. Also added a new config option to suppress messages, so one can run a local copy of the bot without disturbing anyone and made the Proxy a single config rather than having one for KF and one for Pusher.
This commit is contained in:
26
KfChatDotNetKickBot/Models/ConfigModel.cs
Normal file
26
KfChatDotNetKickBot/Models/ConfigModel.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
namespace KfChatDotNetKickBot.Models;
|
||||
|
||||
public class ConfigModel
|
||||
{
|
||||
public Uri PusherEndpoint { get; set; } =
|
||||
new("wss://ws-us2.pusher.com/app/eb1d5f283081a78b932c?protocol=7&client=js&version=7.6.0&flash=false");
|
||||
|
||||
public Uri KfWsEndpoint { get; set; } = new("wss://kiwifarms.st:9443/chat.ws");
|
||||
|
||||
public List<string> PusherChannels { get; set; } = [];
|
||||
public int KfChatRoomId { get; set; }
|
||||
// Proxy to use for everything
|
||||
public string? Proxy { get; set; }
|
||||
public int KfReconnectTimeout { get; set; } = 30;
|
||||
public int PusherReconnectTimeout { get; set; } = 30;
|
||||
public bool EnableGambaSeshDetect { get; set; } = true;
|
||||
public int GambaSeshUserId { get; set; } = 168162;
|
||||
public string KickIcon { get; set; } = "https://i.ibb.co/0cqwscx/kick.png";
|
||||
public string KfDomain { get; set; } = "kiwifarms.st";
|
||||
public required string KfUsername { get; set; }
|
||||
public required string KfPassword { get; set; }
|
||||
public string ChromiumPath { get; set; } = "chromium_install";
|
||||
public int? BossmanJackTwitchId { get; set; } = null;
|
||||
// Used for testing
|
||||
public bool SuppressChatMessages { get; set; } = false;
|
||||
}
|
||||
Reference in New Issue
Block a user