SlideShare a Scribd company logo
PHP Berkshire - Aug 2015 https://joind.in/15009
Putting tools in the conversation
(All hail our new ‘bot masters)
PHP Berkshire - Aug 2015 https://joind.in/15009
Dave Baker / @fully_baked
Developer at Crew.co
Co-founder @PHPDorset
Co-founder @PHPSouthCoast
Introduction
PHP Berkshire - Aug 2015 https://joind.in/15009
So, what is Chat-Ops?
PHP Berkshire - Aug 2015 https://joind.in/15009
“ChatOps is all about conversation-driven
development. By bringing your tools into your
conversations and using a chat bot modified to
work with key plugins and scripts, teams can
automate tasks and collaborate, working better,
cheaper and faster.
Eric Sigler - Pagerduty
PHP Berkshire - Aug 2015 https://joind.in/15009
What are the benefits?
PHP Berkshire - Aug 2015 https://joind.in/15009
Every day tasks in one place
PHP Berkshire - Aug 2015 https://joind.in/15009
Passive Learning
PHP Berkshire - Aug 2015 https://joind.in/15009
Hide the ‘ugly’
PHP Berkshire - Aug 2015 https://joind.in/15009
Enables/Improves Remote
PHP Berkshire - Aug 2015 https://joind.in/15009
Open Communication
PHP Berkshire - Aug 2015 https://joind.in/15009
Speed & Reliability
PHP Berkshire - Aug 2015 https://joind.in/15009
Group Chat & Services
PHP Berkshire - Aug 2015 https://joind.in/15009
PHP Berkshire - Aug 2015 https://joind.in/15009
Integrations
PHP Berkshire - Aug 2015 https://joind.in/15009
The bot
PHP Berkshire - Aug 2015 https://joind.in/15009
Do I need a bot
PHP Berkshire - Aug 2015 https://joind.in/15009
About a bot
PHP Berkshire - Aug 2015 https://joind.in/15009
Meet Lita
PHP Berkshire - Aug 2015 https://joind.in/15009
$ gem install lita
$ lita new
$ cd lita
$ lita start
Installing
PHP Berkshire - Aug 2015 https://joind.in/15009
Anatomy
.
├── Gemfile
├── Gemfile.lock
└── lita_config.rb
0 directories, 3 files
PHP Berkshire - Aug 2015 https://joind.in/15009
source "https://rubygems.org"
gem "lita"
# Uncomment to use the HipChat adapter
# gem "lita-hipchat"
# Uncomment to use the IRC adapter
# gem "lita-irc"
# Add handlers to give Lita new functionality.
# For example:
# gem "lita-google-images"
# gem "lita-karma"
Gemfile
PHP Berkshire - Aug 2015 https://joind.in/15009
Lita.configure do |config|
# The name your robot will use.
config.robot.name = "Lita"
# The severity of messages to log. Options are:
# :debug, :info, :warn, :error, :fatal
# Messages at the selected level and above will be logged.
config.robot.log_level = :info
# An array of user IDs that are considered administrators. These users
# the ability to add and remove other users from authorization groups.
# What is considered a user ID will change depending on which adapter you use.
# config.robot.admins = ["1", "2"]
# The adapter you want to connect with. Make sure you've added the
# appropriate gem to the Gemfile.
config.robot.adapter = :shell
## Example: Set configuration for any loaded handlers. See the handler's
## documentation for options.
# config.handlers.some_handler.some_config_key = "value"
end
Config
PHP Berkshire - Aug 2015 https://joind.in/15009
Uh-oh! Demo!
PHP Berkshire - Aug 2015 https://joind.in/15009
https://my.slack.com/services/new/lita
PHP Berkshire - Aug 2015 https://joind.in/15009
PHP Berkshire - Aug 2015 https://joind.in/15009
$ lita help
2.2.2 5-hack-handler c7ea87f
Commands:
lita adapter NAME # Generates a new Lita adapter
lita extension NAME # Generates a new Lita extension
lita handler NAME # Generates a new Lita handler
lita help [COMMAND] # Describe available commands or one specific command
lita new NAME # Generates a new Lita project (default name: lita)
lita start # Starts Lita
lita version # Outputs the current version of Lita
Lita helps you
PHP Berkshire - Aug 2015 https://joind.in/15009
Scaffold of a handler
#lita-pary.rb
module Lita
module Handlers
class Party < Handler
route(/party/, :because, command: false, help: {
"Party!" => "Lita loves to party!"
})
def because(response)
response.reply "Party? P.A.R.T.Y! Because I gotta!"
end
end
Lita.register_handler(Party)
end
end
PHP Berkshire - Aug 2015 https://joind.in/15009
Adding handler to Lita
#lita_config.rb
require_relative './lita-party'
Lita.configure do |config|
# The name your robot will use.
config.robot.name = "Lita"
# —- snip ——
end
PHP Berkshire - Aug 2015 https://joind.in/15009
Demo Wrap up
PHP Berkshire - Aug 2015 https://joind.in/15009
Pitfalls / Cons
PHP Berkshire - Aug 2015 https://joind.in/15009
FUD
(Fear, Uncertainty, Doubt)
PHP Berkshire - Aug 2015 https://joind.in/15009
Noise
PHP Berkshire - Aug 2015 https://joind.in/15009
Over-excited Devs
DON’T
PHP Berkshire - Aug 2015 https://joind.in/15009
Wrap Up
PHP Berkshire - Aug 2015 https://joind.in/15009
Questions?
PHP Berkshire - Aug 2015 https://joind.in/15009
Image Credits
[Robot] http://www.techweekeurope.co.uk/workspace/us-scientists-plan-on-demand-robots-71620/attachment/retro-robot-toy
[Questionmark person] http://www.onlygoodpix.com/photo/q/question-mark-person/1/
Resources
[Lita] https://www.lita.io/
[Lita docs] http://docs.lita.io/getting-started/
[Lita plugins] https://www.lita.io/plugins
[Jesse Newland Talk] https://www.youtube.com/watch?v=NST3u-GjjFw
[Dev Ops Days Rockies 2015 videos] http://livestream.com/devopsdaysorg/Rockies2015
[ChatOps for Dummies] https://victorops.com/chatops-for-dummies/

More Related Content

PDF
Contributing to Impala
PDF
DevOps Fest 2019. Gianluca Arbezzano. DevOps never sleeps. What we learned fr...
PDF
Creating Android Services with Delphi and RAD Studio 10 Seattle
PDF
Building restful apis with laravel
PPTX
Continuous Delivery for Mature Code
PDF
Real-time GraphQL in Angular app
PDF
Android Services Skill Sprint
PDF
Deep Dive into Futures and the Parallel Programming Library
Contributing to Impala
DevOps Fest 2019. Gianluca Arbezzano. DevOps never sleeps. What we learned fr...
Creating Android Services with Delphi and RAD Studio 10 Seattle
Building restful apis with laravel
Continuous Delivery for Mature Code
Real-time GraphQL in Angular app
Android Services Skill Sprint
Deep Dive into Futures and the Parallel Programming Library

What's hot (19)

PDF
Scala ♥ Graal by Flavio Brasil
PDF
RxJS: A Beginner & Expert's Perspective - ng-conf 2017
PDF
Techical Workflow for a Startup
PDF
LF_APIStrat17_Creating Communication Applications using the Asterisk RESTFul ...
PPTX
KDS - How to put a face on a server
PDF
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE
PPTX
Laravel conf taiwan_2018
PDF
ARI and AGI, a powerful combination
PPT
HTML5 & WAI-ARIA - Happy Families
PPS
Web Development in Perl
PPTX
API Versioning for Zero Downtime | Devoxx Belgium 2017
PPTX
A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...
PPTX
A Journey from API Versioning to Canary Release | APIDays Zurich 2017
PPTX
Anypoint Connectors
PDF
Contributing to open source as a non developer - #wclax
PDF
Building Serverless applications with Python
PDF
The Power of RxJS in Nativescript + Angular
PDF
How to Build APIs - MHacks 2016
PDF
API公開最初の一歩 - API Connect on Bluemix
Scala ♥ Graal by Flavio Brasil
RxJS: A Beginner & Expert's Perspective - ng-conf 2017
Techical Workflow for a Startup
LF_APIStrat17_Creating Communication Applications using the Asterisk RESTFul ...
KDS - How to put a face on a server
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE
Laravel conf taiwan_2018
ARI and AGI, a powerful combination
HTML5 & WAI-ARIA - Happy Families
Web Development in Perl
API Versioning for Zero Downtime | Devoxx Belgium 2017
A Journey from API Versioning to Canary Release | Nordic APIs Platform Summit...
A Journey from API Versioning to Canary Release | APIDays Zurich 2017
Anypoint Connectors
Contributing to open source as a non developer - #wclax
Building Serverless applications with Python
The Power of RxJS in Nativescript + Angular
How to Build APIs - MHacks 2016
API公開最初の一歩 - API Connect on Bluemix
Ad

Similar to Chat-Ops : PHP Berkshire (20)

PDF
ApacheCon 2014 - What's New in Apache httpd 2.4
PDF
ApacheConNA 2015: What's new in Apache httpd 2.4
PDF
Lightweight web frameworks
PDF
Building Tools with GitHub Customize Your Workflow 1st Edition Chris Dawson
PDF
ApacheCon 2017: What's new in httpd 2.4
PDF
What's New and Newer in Apache httpd-24
PDF
Identifying and solving enterprise problems
PDF
Hidden Gems in HTTP
PDF
Ain't Nobody Got Time For That: Intro to Automation
PDF
Lessons learned from building a commercial bot development platform
PDF
The PHP developer stack for building chatbots | Christoph Rumpel | CODEiD
PDF
Development Workflow Tools for Open-Source PHP Libraries
PPTX
Search and analyze data in real time
PDF
An Introduction to the Laravel Framework (AFUP Forum PHP 2014)
PDF
Bots are taking my job, so I started rollin my own
PDF
Bots are taking my job - so I started rollin' my own - Infracoders Meetup Graz
PDF
DevOPS training - Day 1/2
PDF
PDF
PHP projects beyond the LAMP stack
PPTX
Laravel ua chatbot
ApacheCon 2014 - What's New in Apache httpd 2.4
ApacheConNA 2015: What's new in Apache httpd 2.4
Lightweight web frameworks
Building Tools with GitHub Customize Your Workflow 1st Edition Chris Dawson
ApacheCon 2017: What's new in httpd 2.4
What's New and Newer in Apache httpd-24
Identifying and solving enterprise problems
Hidden Gems in HTTP
Ain't Nobody Got Time For That: Intro to Automation
Lessons learned from building a commercial bot development platform
The PHP developer stack for building chatbots | Christoph Rumpel | CODEiD
Development Workflow Tools for Open-Source PHP Libraries
Search and analyze data in real time
An Introduction to the Laravel Framework (AFUP Forum PHP 2014)
Bots are taking my job, so I started rollin my own
Bots are taking my job - so I started rollin' my own - Infracoders Meetup Graz
DevOPS training - Day 1/2
PHP projects beyond the LAMP stack
Laravel ua chatbot
Ad

Recently uploaded (20)

PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
iTop VPN Crack Latest Version Full Key 2025
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
Complete Guide to Website Development in Malaysia for SMEs
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
AutoCAD Professional Crack 2025 With License Key
PDF
Website Design Services for Small Businesses.pdf
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
Cost to Outsource Software Development in 2025
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
Design an Analysis of Algorithms II-SECS-1021-03
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
PPTX
Weekly report ppt - harsh dattuprasad patel.pptx
PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
Adobe Illustrator 28.6 Crack My Vision of Vector Design
iTop VPN Crack Latest Version Full Key 2025
Internet Downloader Manager (IDM) Crack 6.42 Build 41
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
CHAPTER 2 - PM Management and IT Context
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Complete Guide to Website Development in Malaysia for SMEs
Navsoft: AI-Powered Business Solutions & Custom Software Development
AutoCAD Professional Crack 2025 With License Key
Website Design Services for Small Businesses.pdf
Digital Systems & Binary Numbers (comprehensive )
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Cost to Outsource Software Development in 2025
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Design an Analysis of Algorithms II-SECS-1021-03
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
17 Powerful Integrations Your Next-Gen MLM Software Needs
Weekly report ppt - harsh dattuprasad patel.pptx
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free

Chat-Ops : PHP Berkshire

  • 1. PHP Berkshire - Aug 2015 https://joind.in/15009 Putting tools in the conversation (All hail our new ‘bot masters)
  • 2. PHP Berkshire - Aug 2015 https://joind.in/15009 Dave Baker / @fully_baked Developer at Crew.co Co-founder @PHPDorset Co-founder @PHPSouthCoast Introduction
  • 3. PHP Berkshire - Aug 2015 https://joind.in/15009 So, what is Chat-Ops?
  • 4. PHP Berkshire - Aug 2015 https://joind.in/15009 “ChatOps is all about conversation-driven development. By bringing your tools into your conversations and using a chat bot modified to work with key plugins and scripts, teams can automate tasks and collaborate, working better, cheaper and faster. Eric Sigler - Pagerduty
  • 5. PHP Berkshire - Aug 2015 https://joind.in/15009 What are the benefits?
  • 6. PHP Berkshire - Aug 2015 https://joind.in/15009 Every day tasks in one place
  • 7. PHP Berkshire - Aug 2015 https://joind.in/15009 Passive Learning
  • 8. PHP Berkshire - Aug 2015 https://joind.in/15009 Hide the ‘ugly’
  • 9. PHP Berkshire - Aug 2015 https://joind.in/15009 Enables/Improves Remote
  • 10. PHP Berkshire - Aug 2015 https://joind.in/15009 Open Communication
  • 11. PHP Berkshire - Aug 2015 https://joind.in/15009 Speed & Reliability
  • 12. PHP Berkshire - Aug 2015 https://joind.in/15009 Group Chat & Services
  • 13. PHP Berkshire - Aug 2015 https://joind.in/15009
  • 14. PHP Berkshire - Aug 2015 https://joind.in/15009 Integrations
  • 15. PHP Berkshire - Aug 2015 https://joind.in/15009 The bot
  • 16. PHP Berkshire - Aug 2015 https://joind.in/15009 Do I need a bot
  • 17. PHP Berkshire - Aug 2015 https://joind.in/15009 About a bot
  • 18. PHP Berkshire - Aug 2015 https://joind.in/15009 Meet Lita
  • 19. PHP Berkshire - Aug 2015 https://joind.in/15009 $ gem install lita $ lita new $ cd lita $ lita start Installing
  • 20. PHP Berkshire - Aug 2015 https://joind.in/15009 Anatomy . ├── Gemfile ├── Gemfile.lock └── lita_config.rb 0 directories, 3 files
  • 21. PHP Berkshire - Aug 2015 https://joind.in/15009 source "https://rubygems.org" gem "lita" # Uncomment to use the HipChat adapter # gem "lita-hipchat" # Uncomment to use the IRC adapter # gem "lita-irc" # Add handlers to give Lita new functionality. # For example: # gem "lita-google-images" # gem "lita-karma" Gemfile
  • 22. PHP Berkshire - Aug 2015 https://joind.in/15009 Lita.configure do |config| # The name your robot will use. config.robot.name = "Lita" # The severity of messages to log. Options are: # :debug, :info, :warn, :error, :fatal # Messages at the selected level and above will be logged. config.robot.log_level = :info # An array of user IDs that are considered administrators. These users # the ability to add and remove other users from authorization groups. # What is considered a user ID will change depending on which adapter you use. # config.robot.admins = ["1", "2"] # The adapter you want to connect with. Make sure you've added the # appropriate gem to the Gemfile. config.robot.adapter = :shell ## Example: Set configuration for any loaded handlers. See the handler's ## documentation for options. # config.handlers.some_handler.some_config_key = "value" end Config
  • 23. PHP Berkshire - Aug 2015 https://joind.in/15009 Uh-oh! Demo!
  • 24. PHP Berkshire - Aug 2015 https://joind.in/15009 https://my.slack.com/services/new/lita
  • 25. PHP Berkshire - Aug 2015 https://joind.in/15009
  • 26. PHP Berkshire - Aug 2015 https://joind.in/15009 $ lita help 2.2.2 5-hack-handler c7ea87f Commands: lita adapter NAME # Generates a new Lita adapter lita extension NAME # Generates a new Lita extension lita handler NAME # Generates a new Lita handler lita help [COMMAND] # Describe available commands or one specific command lita new NAME # Generates a new Lita project (default name: lita) lita start # Starts Lita lita version # Outputs the current version of Lita Lita helps you
  • 27. PHP Berkshire - Aug 2015 https://joind.in/15009 Scaffold of a handler #lita-pary.rb module Lita module Handlers class Party < Handler route(/party/, :because, command: false, help: { "Party!" => "Lita loves to party!" }) def because(response) response.reply "Party? P.A.R.T.Y! Because I gotta!" end end Lita.register_handler(Party) end end
  • 28. PHP Berkshire - Aug 2015 https://joind.in/15009 Adding handler to Lita #lita_config.rb require_relative './lita-party' Lita.configure do |config| # The name your robot will use. config.robot.name = "Lita" # —- snip —— end
  • 29. PHP Berkshire - Aug 2015 https://joind.in/15009 Demo Wrap up
  • 30. PHP Berkshire - Aug 2015 https://joind.in/15009 Pitfalls / Cons
  • 31. PHP Berkshire - Aug 2015 https://joind.in/15009 FUD (Fear, Uncertainty, Doubt)
  • 32. PHP Berkshire - Aug 2015 https://joind.in/15009 Noise
  • 33. PHP Berkshire - Aug 2015 https://joind.in/15009 Over-excited Devs DON’T
  • 34. PHP Berkshire - Aug 2015 https://joind.in/15009 Wrap Up
  • 35. PHP Berkshire - Aug 2015 https://joind.in/15009 Questions?
  • 36. PHP Berkshire - Aug 2015 https://joind.in/15009 Image Credits [Robot] http://www.techweekeurope.co.uk/workspace/us-scientists-plan-on-demand-robots-71620/attachment/retro-robot-toy [Questionmark person] http://www.onlygoodpix.com/photo/q/question-mark-person/1/ Resources [Lita] https://www.lita.io/ [Lita docs] http://docs.lita.io/getting-started/ [Lita plugins] https://www.lita.io/plugins [Jesse Newland Talk] https://www.youtube.com/watch?v=NST3u-GjjFw [Dev Ops Days Rockies 2015 videos] http://livestream.com/devopsdaysorg/Rockies2015 [ChatOps for Dummies] https://victorops.com/chatops-for-dummies/