/// <summary>
        /// Determines if the chat message is directed to the chatbot or not.
        /// </summary>
        /// <param name="chatMessage"></param>
        /// <param name="chatRoom"></param>
        /// <returns></returns>
        private bool MessageIsReplyToChatbot(Message chatMessage, Room chatRoom)
        {
            if (chatMessage.ParentID == -1)
                return false;

            // Check if we're trying to fetch a deleted message.
            try
            {
                var parentMessage = chatRoom.GetMessage(chatMessage.ParentID);
                return parentMessage.Author.ID == chatRoom.Me.ID;
            }
            catch (MessageNotFoundException)
            {
                return false;
            }
        }