Exemplo n.º 1
0
        private void Client_OnChatCommandReceived(object sender, OnChatCommandReceivedArgs e)
        {
            var chatEvent = new TwitchChatEvent(TwitchChatEventType.CommandRecieved, e.Command.CommandText);

            chatEvent.Username = e.Command.ChatMessage.Username;

            OnChatEvent?.Invoke(chatEvent);
        }
Exemplo n.º 2
0
        private void Client_OnUserJoined(object sender, OnUserJoinedArgs e)
        {
            var chatEvent = new TwitchChatEvent(TwitchChatEventType.UserJoined);

            chatEvent.Username = e.Username;
            chatEvent.Channel  = e.Channel;

            OnChatEvent?.Invoke(chatEvent);
        }