automatically join self channel in twitch

This commit is contained in:
adam 2025-06-21 23:10:47 -04:00
parent 9b41324665
commit e0d5369823
2 changed files with 3 additions and 4 deletions

View File

@ -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;}
}

View File

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