fix setTimeout
This commit is contained in:
parent
8cecac6400
commit
6c90862e5d
@ -29,10 +29,10 @@ module.exports = (robot) ->
|
||||
|
||||
if process.env.AUTO_KILL_ON_UPDATE
|
||||
robot.send dest, 'riavvio in 5 SECONDI'
|
||||
setTimeout 5000, ->
|
||||
console.log 'DYING NOW AS REQUESTED!'
|
||||
reboot = ->
|
||||
console.log 'AUTO IMPICCAGIONE IN CORSO!'
|
||||
process.exit 0
|
||||
|
||||
setTimeout reboot, 5000
|
||||
robot.respond /(?:(?:mostra(?:mi)?|fammi vedere) )?(?:le )?issue(?:s)?/i, (res) ->
|
||||
msg = state: 'open', user: 'fazo96', repo: 'asjon', sort: 'updated'
|
||||
res.send 'controllo issues...'
|
||||
|
Loading…
Reference in New Issue
Block a user