nuova misc + fix

This commit is contained in:
Enrico Fasoli 2015-04-24 10:28:01 +02:00
parent e7477acd27
commit 6c51e3d281
2 changed files with 6 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,6 +20,11 @@ module.exports = (robot) ->
robot.http('http://canihazip.com/s')
.get() (err, r, body) ->
res.send 'dovrei essere a ' + body
robot.respond /con chi stai parlando/i, (res) ->
if res.message.user.name is res.message.room
res.send 'sto parlando con te, '+res.message.user.name
else
res.send 'sto parlando in '+rs.message.room+', '+res.message.user.name
robot.respond /riavvia/i, (res) ->
robot.send 'riavvio...'
process.exit 0