forked from adam/discord-bot-shtik
automatically join self channel in twitch
This commit is contained in:
parent
9b41324665
commit
e0d5369823
@ -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;}
|
||||
}
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user