private void OnChatCommandReceived(User userData, EvtChatCommandArgs e)
 {
     //If an exception is unhandled in a command, the entire bot will hang up (potential internal TwitchLib issue)
     try
     {
         CommandHandler.HandleCommand(userData, e);
     }
     catch (Exception exc)
     {
         BotProgram.MsgHandler.QueueMessage($"Error handling command \"{e.Command.CommandText}\": {exc.Message}\n {exc.StackTrace}");
     }
 }
Esempio n. 2
0
 private void OnChatCommandReceived(EvtChatCommandArgs e)
 {
     CommandHandler.HandleCommand(e);
 }