added logic to the message parser to handle queries to the bot