Simply Deployable Designed to run on Heroku, easy to run elsewhere • Get Heroku toolchain • heroku create • Set environment variables • Configure Procfile • git push heroku master
robot.respond rules = [ "1. A robot may not injure a human being or, through inaction, allow a hu "2. A robot must obey any orders given to it by human beings, except wher "3. A robot must protect its own existence as long as such protection doe ] module.exports = (robot) -> robot.respond /(what are )?the (three |3 )?(rules|laws)/i, (msg) -> text = msg.message.text msg.send rules.join('\n')
robot.hear quotes = [ "Life! Don't talk to me about life", "Life, loathe it or ignore it, you can't like it", "Life's bad enough as it is without wanting to invent any more of it", "Funny, how just when you think life can't possibly get any worse it sudd ] module.exports = (robot) -> robot.hear /(.*)(life)(.*)/i, (msg) -> msg.send msg.random quotes
Developing for Webhooks To test webhooks on a dev platform, try ngrok (https://ngrok.com/) Secure tunnel to a port on your machine, with: • ability to inspect traffic • option to replay (rather than having to retrigger)
ChatOps in Teams Unsolicited advice from me: • Works for open source and commercial teams • Build on existing plugins • Don't take it too seriously • Never ask permission