Rajeev Kannav Sharma

Posts About

Hubot Introduction

20 Aug 2016

What is Hubot?

Hubot is your company’s robot. Install him in your company to dramatically improve and reduce employee efficiency.

Hubot is open source, written in CoffeeScript on Node.js, and easily deployed on platforms like Heroku. More importantly, Hubot is a standardized way to share scripts between everyone’s robots.

You will need node.js and npm. Once those are installed, we can install the hubot generator:

% npm install -g yo generator-hubot
% mkdir myhubot
% cd myhubot
% yo hubot

At this point, you’ll be asked a few questions about who is creating the bot, and which adapter you’ll be using. Adapters are hubot’s way of integrating with different chat providers.

If you are using git, the generated directory includes a .gitignore, so you can initialize and add everything:

% git init
% git add .
% git commit -m "Initial commit"
% bin/hubot

This starts hubot using the shell adapter, which is mostly useful for development. Make note of Hubot>; this is the name your hubot will respond to with commands.

hubot> hubot help

You can deploy hubot to Heroku, which is the officially supported method. Additionally you are able to deploy hubot to a UNIX-like system or Windows.

We’ll cover more Hubot features and build it for surein upcoming posts.
And if you get stuck… Ask Here

email me rajeevsharma86@gmail.com

Tweet to me at @rajeevkannav.