add reboot

This commit is contained in:
Enrico Fasoli 2015-04-24 09:32:59 +02:00
parent 46c6403e8e
commit e7477acd27
2 changed files with 4 additions and 1 deletions

View File

@ -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" "$@"

View File

@ -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