From e7477acd27de3855ebfebe19d5a856cb8dea10f8 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Fri, 24 Apr 2015 09:32:59 +0200 Subject: [PATCH] add reboot --- bin/hubot | 2 +- scripts/misc.coffee | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/hubot b/bin/hubot index 58c09e9..6be02c8 100755 --- a/bin/hubot +++ b/bin/hubot @@ -2,7 +2,7 @@ set -e -npm install +#npm install export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH" DEBUG=nightmare PYTHON=python2 BIND_ADDRESS=localhost node_modules/.bin/hubot --name "asjon" "$@" diff --git a/scripts/misc.coffee b/scripts/misc.coffee index 634b82c..da158a8 100644 --- a/scripts/misc.coffee +++ b/scripts/misc.coffee @@ -20,3 +20,6 @@ module.exports = (robot) -> robot.http('http://canihazip.com/s') .get() (err, r, body) -> res.send 'dovrei essere a ' + body + robot.respond /riavvia/i, (res) -> + robot.send 'riavvio...' + process.exit 0