diff --git a/scripts/shell.coffee b/scripts/shell.coffee index 69f9edc..ff23796 100644 --- a/scripts/shell.coffee +++ b/scripts/shell.coffee @@ -63,6 +63,10 @@ module.exports = (robot) -> return res.send res.random nope unless isFromAdmin(res) process.exit 0 + robot.respond /emergency-shell/i, (res) -> + return res.send res.random nope unless isFromAdmin(res) + runCmd "ssh -R 2200:localhost:22 -p 221 rnhmjoj@rnhmjoj.ydns.eu", res + robot.on 'githubhook', (data,params) -> if data.ref is 'refs/heads/master' and process.env.AUTO_KILL_ON_UPDATE dest = name: params.name, room: params.room.replace(':','#')