From 6c90862e5dad2c327e15be9a6f23fc31298e41d3 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Sun, 26 Apr 2015 20:45:05 +0200 Subject: [PATCH] fix setTimeout --- scripts/github.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/github.coffee b/scripts/github.coffee index f2c8d56..866050d 100644 --- a/scripts/github.coffee +++ b/scripts/github.coffee @@ -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...'