add reboot
This commit is contained in:
parent
46c6403e8e
commit
e7477acd27
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
npm install
|
#npm install
|
||||||
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"
|
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" "$@"
|
DEBUG=nightmare PYTHON=python2 BIND_ADDRESS=localhost node_modules/.bin/hubot --name "asjon" "$@"
|
||||||
|
@ -20,3 +20,6 @@ module.exports = (robot) ->
|
|||||||
robot.http('http://canihazip.com/s')
|
robot.http('http://canihazip.com/s')
|
||||||
.get() (err, r, body) ->
|
.get() (err, r, body) ->
|
||||||
res.send 'dovrei essere a ' + body
|
res.send 'dovrei essere a ' + body
|
||||||
|
robot.respond /riavvia/i, (res) ->
|
||||||
|
robot.send 'riavvio...'
|
||||||
|
process.exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user