From e0d5369823a108ebaf61331ae034ff13e86c34f2 Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 21 Jun 2025 23:10:47 -0400 Subject: [PATCH] automatically join self channel in twitch --- ProtocolInterfaces/TwitchInterface/TwitchConfig.cs | 4 +--- ProtocolInterfaces/TwitchInterface/TwitchInterface.cs | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ProtocolInterfaces/TwitchInterface/TwitchConfig.cs b/ProtocolInterfaces/TwitchInterface/TwitchConfig.cs index 84f6d32..7d5ece5 100644 --- a/ProtocolInterfaces/TwitchInterface/TwitchConfig.cs +++ b/ProtocolInterfaces/TwitchInterface/TwitchConfig.cs @@ -3,7 +3,5 @@ namespace vassago.TwitchInterface; public class TwitchConfig { public string username {get; set;} - public string clientId {get; set;} - public string secret {get; set;} public string oauth {get; set;} -} \ No newline at end of file +} diff --git a/ProtocolInterfaces/TwitchInterface/TwitchInterface.cs b/ProtocolInterfaces/TwitchInterface/TwitchInterface.cs index 7dc8c5a..191b5b3 100644 --- a/ProtocolInterfaces/TwitchInterface/TwitchInterface.cs +++ b/ProtocolInterfaces/TwitchInterface/TwitchInterface.cs @@ -121,8 +121,9 @@ public class TwitchInterface : ProtocolInterface selfAccountInProtocol = UpsertAccount(e.BotUsername, protocolAsChannel); selfAccountInProtocol.DisplayName = e.BotUsername; Behaver.Instance.MarkSelf(selfAccountInProtocol); - Console.WriteLine($"Connected to {e.AutoJoinChannel}"); + + AttemptJoin(e.BotUsername); } private void Client_OnJoinedChannel(object sender, OnJoinedChannelArgs e)