Skip to content

Instantly share code, notes, and snippets.

@LindsayHill
Created June 25, 2016 06:02
Show Gist options
  • Save LindsayHill/ecfde3eb94c13672e026dafbeb6120ef to your computer and use it in GitHub Desktop.
Save LindsayHill/ecfde3eb94c13672e026dafbeb6120ef to your computer and use it in GitHub Desktop.
export HUBOT_NAME=stanley
export HUBOT_SLACK_TOKEN=xoxb-5187818172-I7wLh4oqzhAScwXZtPcHyxCu
# Configure Hubot to use Slack
sed -i "s~# export HUBOT_ADAPTER=slack~export HUBOT_ADAPTER=slack~" /opt/stackstorm/chatops/st2chatops.env
# Set the bot name
sed -i "s~export HUBOT_NAME=hubot~export HUBOT_NAME=${HUBOT_NAME}~" /opt/stackstorm/chatops/st2chatops.env
# Set our Slack token
sed -i "s/.*export HUBOT_SLACK_TOKEN.*/export HUBOT_SLACK_TOKEN=${HUBOT_SLACK_TOKEN}/" /opt/stackstorm/chatops/st2chatops.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment