Skip to content
This repository
Micah Frost October 03, 2013
file 19 lines (17 sloc) 0.396 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Description:
# Forces hubot to do what you want, even if he doesn't know how
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot sudo <anything you want> - Force hubot to do what you want
#
# Author:
# searls

module.exports = (robot) ->
  robot.respond /(?:sudo) ?(.*)/i, (msg) ->
    msg.send "Alright. I'll #{msg.match?[1] || "do whatever it is you wanted."}"
Something went wrong with that request. Please try again.