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...'