diff --git a/KfChatDotNetBot/ChatBot.cs b/KfChatDotNetBot/ChatBot.cs index 024aaf9..774e095 100644 --- a/KfChatDotNetBot/ChatBot.cs +++ b/KfChatDotNetBot/ChatBot.cs @@ -291,7 +291,15 @@ public class ChatBot !InitialStartCooldown) { _logger.Debug("Passing message to command interface"); - _botCommands.ProcessMessage(message); + try + { + _botCommands.ProcessMessage(message); + } + catch (Exception e) + { + _logger.Error("ProcessMessage threw an exception"); + _logger.Error(e); + } } // Update or add the element to keep it in sync