Did you know that you can navigate the posts by swiping left and right?

Integrating Hubot with Slack

20 Jun 2017 . category: devops . Comments
#sysadmin #devops #hubot #slack #hubot-control #bot #slack-bot

From the previous post How to install Hubot-Control on Ubuntu Linux, we’ve created Hubot-control to help us configure and manage multiple Hubot instances using a web interface.

In this post, we will integrate Hubot with slack. Slack is a team collaboration tool which offers persistent chat rooms, as well as private groups and direct messaging.

The first thing, we need to do is install the slack adapter in our project


$ npm install hubot-slack --save

Once that is done, you will also need to setup a Custom Bot on your Slack team. This will create a token that your hubot can use to log into your team as a bot. Visit the Custom Bot creation page to register your bot with your Slack team, and to retrieve a new bot token.

Running Hubot
Open hubot-control page, at the hubot’s name, click configure button then add the hubot_slack_token at the Variables tab. Hubot Slack

Restart the bot, you’ll then be able to test out your script inside Slack app Hubot Slack

Next step, we will build the amazing things call ChatOps.


Me

Harry Nguyen is an awesome person. Abosolutely true!.