Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Hubot is a robot which runs using node.js and is written in coffee-script.</p> <p>The documentation on the site does little justice to what Hubot can be used for, because it’s hard to explain that Hubot can be used for succinctly.</p> <p>In short you can use Hubot to do anything that you are able to program.</p> <p>See... terrible explanation.</p> <p>Hubot can be configured to join your company chatroom and based on key words or regular expressions, Hubot can run commands, call APIs, execute scripts or programs… anything at all in the background and return the results to you in the chat room, without you having to change context. </p> <p>I will give some examples of what Hubot can be used for to make understanding its value.</p> <p>The two methods I will explain are: hear and respond . e.g. </p> <pre><code>robot.hear /restart iis on "(.*)"/i, (msg) -&gt; robot.respond /restart iis on "(.*)"/i, (msg) -&gt; </code></pre> <p>If you implement this as a respond function, you must address hubot directly in the chatroom.</p> <pre><code>john: hubot restart iis on myservername bill: john just directly asked hubot to restart iis on myservername </code></pre> <p>However, if you were to implement this as a hear function. You could type a full sentence such as</p> <pre><code>john: I think if we restart iis on myservername it will resolve the issue. bill: oops you just restarted the server </code></pre> <p>Hubot would automatically execute a restart of your iis server. In this case that would have been a bad thing.</p> <p>With this basic premise that any task you can automate, can be implemented through hubot. You simply map a regular expression for hubot to watch for and either "hear" or "respond" to.</p> <p>Here are a few ideas of how this could be of value: </p> <ul> <li>Allow a person with no production access to execute specific tasks in production</li> <li>Give developers are mechanism of requesting development environment refreshes from production in a chat room.</li> <li>Since your interface to this functionality becomes your chatroom, you can use the chat room as audit documentation of who requested what task be completed.</li> <li>Temporarily grant someone access to perform specific tasks by inviting them to special chat rooms, and removing them from the chatroom after the fact.</li> </ul> <p>Here is a slide deck which discusses hubot/ chatops</p> <p><a href="https://speakerdeck.com/jnewland/chatops-at-github" rel="nofollow">ChatOps at GitHub by Jesse Newland</a></p> <p>I hope this provides better insight into what hubot can do for you. </p> <p>Find any repetitive task you do and give it a shot, see if you can write a hubot script to automate that task.</p> <p>Check out sample scripts in the following deprecated repository for inspiration.</p> <p><a href="https://github.com/github/hubot-scripts" rel="nofollow">DEPRECATED HUBOT-SCRIPTS REPO</a></p> <p>Official Info:</p> <p><a href="https://hubot.github.com/" rel="nofollow">official hubot site</a></p> <p><a href="https://github.com/github/hubot" rel="nofollow">hubot source code</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload