fix setTimeout

This commit is contained in:
Enrico Fasoli 2015-04-26 20:45:05 +02:00
parent 8cecac6400
commit 6c90862e5d

View File

@ -29,10 +29,10 @@ module.exports = (robot) ->
if process.env.AUTO_KILL_ON_UPDATE if process.env.AUTO_KILL_ON_UPDATE
robot.send dest, 'riavvio in 5 SECONDI' robot.send dest, 'riavvio in 5 SECONDI'
setTimeout 5000, -> reboot = ->
console.log 'DYING NOW AS REQUESTED!' console.log 'AUTO IMPICCAGIONE IN CORSO!'
process.exit 0 process.exit 0
setTimeout reboot, 5000
robot.respond /(?:(?:mostra(?:mi)?|fammi vedere) )?(?:le )?issue(?:s)?/i, (res) -> robot.respond /(?:(?:mostra(?:mi)?|fammi vedere) )?(?:le )?issue(?:s)?/i, (res) ->
msg = state: 'open', user: 'fazo96', repo: 'asjon', sort: 'updated' msg = state: 'open', user: 'fazo96', repo: 'asjon', sort: 'updated'
res.send 'controllo issues...' res.send 'controllo issues...'