Fixed some issues regarding parsing messages

The bot was breaking on messages it couldn't parse. I added a check to
see if the command exists before diving into the big if-elif case stuff,
and I wrapped the parsing of the message in a try clause.