I deployed a hubot for our mattermost yesterday and everything works fine. We you hubot-mattermost.
Did you set environment variables? Or did you create a .hubotrc file with the correct export commands?
The exception in the first post looks like you did not set the correct environment variables.