Download and install node.js from https://nodejs.org
Get this code down locally
Run npm install to get dependencies
Add a new Bot in Slack, and copy the Bot token, at http://YOUR-SLACK-DOMAIN.slack.com/services/new/bot
Run chembot from the command line:
token=YOUR-TOKEN node chembot.js
Find your bot in Slack and send it a Direct Message saying "Hello"