Example #1
0
        public Chat(string username, string password, string channel, bool login = true)
        {
            _username = username.ToLower();
            _password = password;
            _channel  = channel.ToLower();

            Me = TwitchAPI.getTwitchUser(_username);

            _messageStore = new MessageStore();

            _tcpClient     = new TcpClient("irc.twitch.tv", 6667);
            _networkStream = _tcpClient.GetStream();

            _userMap = new UserMap();

            if (login)
            {
                Login();
            }
        }
Example #2
0
 public JoinPartMessage(TwitchUser user, bool joined)
 {
     this.User   = user;
     this.Joined = joined;
 }
Example #3
0
 public ChatMessage(TwitchUser sender, Group message)
 {
     Sender  = sender;
     Message = message.ToString();
 }