Skip to content

Instantly share code, notes, and snippets.

@saboyutaka
Created April 16, 2014 11:20
Show Gist options
  • Save saboyutaka/10855666 to your computer and use it in GitHub Desktop.
Save saboyutaka/10855666 to your computer and use it in GitHub Desktop.
idobata_debug.coffee
util = require 'util'
module.exports = (robot) ->
robot.respond /debug( snippet)?/, (msg) ->
if msg.match[1]?
msg.send '```\n' + util.inspect(msg) + '\n```'
else
msg.send util.inspect msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment