![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2581828/hubot.jpg)
ChatOps
Get ready to work with a human robot as a member of your team
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2581892/Capture_d_e_cran_2016-05-08_a__21.47.00.png)
@lahdiouiouadie
Who am i ?
Oudie Lahdioui
@lahdiouiouadie
Consultant IT @ OCTO Technology
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2577754/twitter-logo_318-40209.jpg)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2577755/GitHub-Mark.png)
ouadie-lahdioui
outline
- What is ChatOps ?
- What are Chatbots and what are they used for ?
- Digging into HuBot
- Live demo
Quick survey
- Who work in teams ?
- Who know about ChatOps ?
- ... and what about DevOps ?
Placing tools directly in the middle of the conversation
- Jesse Newland, GitHub
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2578644/meeting_01.jpg)
Every team member has skills and master tools
What if someone need help but no one here to response ?
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2578986/table.jpg)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2578646/20150210005716_Slack_Icon.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2578647/hipchat_og_image.jpg)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2578648/skype-logo-feb_2012_rgb_500.png)
But everyone use a chat client for better communication
ChatOps is all about conversation driven development
by bringing your tools into your conversations
What are the benefits of ChatOps ?
Sharing
Everyone can see what is happening, even on their first day
Learning
"Everyone is pairing all of the time"
Quickly access data
ChatBot
A piece of software that you chat with to get things done
It's your own personal assistant to take care of everything
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580441/bots.jpg)
Roles of the bots
Automating
Deployment
Graphing
Monitoring
Provisioning
Tweeting
And many funny things
A Python-based bot
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580014/Err.png)
Chat bot written in Ruby with persistent storage provided by Redis
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580013/Lita-163x300.png)
Hubot
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580012/hubot-300x300.jpg)
A chat bot written entirely in Coffeescript and Node.js by GitHub
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580139/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f626c6f672f323031312f6875626f742e706e67.png)
1) You must install npm and node.js from www.nodejs.org
npm install -g hubot coffee-script yo generator-hubot
2) Install the following packages :
hubot / coffee-script / yo / generator-hubot
Installation
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580139/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f626c6f672f323031312f6875626f742e706e67.png)
3) Create a directory to house your new friend and run the yeoman generator :
mkdir marvin
cd marvin
yo hubot
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580168/Sans_titre.png)
4) Start hubot server :
bin/hubot
Hubot out of the box doesn't do too much, but with scripts it's can do interesting things
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580139/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f626c6f672f323031312f6875626f742e706e67.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580139/68747470733a2f2f6769746875622d696d616765732e73332e616d617a6f6e6177732e636f6d2f626c6f672f323031312f6875626f742e706e67.png)
Where to Find Pre-built Scripts ?
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580227/Capture_d_e_cran_2016-05-08_a__10.52.52.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580229/Capture_d_e_cran_2016-05-08_a__10.54.48.png)
ChatOps limitations
The only limit is your imagination
But, be careful about what your new friend can do
ChatOps use cases
Backing-up MySQL database without leaving the chatroom
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580053/github-mysql-backup-chatops.png)
(refs. www.code.oursky.com)
Check up jobs
Anyone in the team can talk to the ChatBot anytime to check up the Jenkins building progress
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580078/Capture_d_e_cran_2016-05-08_a__09.03.09.png)
Administrate your github organization
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580344/Capture_d_e_cran_2016-05-08_a__11.59.19.png)
Manage your trello board
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2580382/Capture_d_e_cran_2016-05-08_a__12.23.27.png)
Demo
Thank you for your attention
If you loved ChatOps, let me know
@lahdiouiouadie
![](https://s3.amazonaws.com/media-p.slid.es/uploads/381089/images/2577754/twitter-logo_318-40209.jpg)
ChatOps
By Ouadie LAHDIOUI
ChatOps
An introduction to the wonderful world of ChatOps and what can we do with Hubot
- 1,655