Skip to content

Instantly share code, notes, and snippets.

@lukaszlenart lukaszlenart/ping.coffee
Last active Mar 27, 2018

Embed
What would you like to do?
module.exports = (robot) ->
robot.respond /ping$/i, (msg) ->
msg.finish()
msg.send "pong!\nDo you want to play again?"
robot.respond /echo (.*)$/i, (msg) ->
msg.finish()
msg.send msg.match[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.