Example #1
0
        private async void RespondToPing(TwitchMessage message)
        {
            var match = PingRegex.Match(message.RawMessage);

            if (match.Success)
            {
                await WriteToSystemAsync($"PONG {match.NextMatch()}");
            }
        }
Example #2
0
 public OnMessageReceivedEventArgs(TwitchMessage message, TwitchBot bot)
 {
     Message = message;
     Bot     = bot;
 }