Create your own HuBot on the free Openshift Servers and run on different platforms

Thx to this article I started using OpenShift for hosting my own bots. It’s a walk though that has some small pitfalls, but any suitable dev will overcome this with some debugging.

Running a Slack BOT

Source: https://github.com/slackapi/hubot-slack

Local

HUBOT_SLACK_TOKEN=<slack_app_token> HUBOT_LOG_LEVEL=debug ./bin/hubot -a slack -n 'botje'

Server (Package.json)

"start": "PORT=$OPENSHIFT_NODEJS_PORT BIND_ADDRESS=$OPENSHIFT_NODEJS_IP HEROKU_URL=$OPENSHIFT_APP_DNS REDIS_URL=redis://:$REDIS_PASSWORD@$OPENSHIFT_REDIS_HOST:$OPENSHIFT_REDIS_PORT HUBOT_SLACK_TOKEN=<slack_app_token> HUBOT_LOG_LEVEL=debug bin/hubot -n 'botje' -a slack"

Running a Facebook Messenger BOT

Continue reading