Adding a hubot to slack

      No Comments on Adding a hubot to slack

Recently, I have started using Slack for a small group project. I have heard that hubot can be used to automize some regular and routine work. It is an appealing idea to chat with a bot and get things done.

What is hubot

For those who may be unfamiliar with hubot, it is a smart chatting robot that can respond to your input, do things, and/or give its response.

  1. First of all, hubot is a chatting robot and can speak more natural language. In other words, it is an API that talks more like human rather than queries formed like links.
  2. Hubot can be connected to multiple platforms. With official or third-party adapters hubot can be connected against multiple platforms or web/mobile applications. It can then chat with you on QQ/wechat/Twitter and more. Of course, it also connects to Slack.
  3. Rather than just talking, the robot do things. It can run a program on its local server or send information to other online services. In this way, it works like IFTTT but is capable to do more complicated tasks.
  4. Hubot is extendable. The behavior of hubot is defined by adding custom scripts. This gives you the flexibility to imagine what you want and implement with your best control.

Why use hubot

A few examples that I expect hubot to be useful:

  1. Send out posts given a paragraph I send
  2. Report analytic data once questioned
  3. more

Although none of these seems urgent now for the ongoing project, learning to deploy and write simple scripts can serve as a nice start for the following work.

How to deploy hubot (Work in progress)

I am planning to deploy hubot on heroku as it is officially recommended. This is still work in progress, so I will list my reference here below for the moment.

To be continued

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax