From 8cecac64000adc168ea11849f40788a50bec542b Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Sun, 26 Apr 2015 20:41:44 +0200 Subject: [PATCH] aggiunto auto messaggio all'avvio --- scripts/github.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/github.coffee b/scripts/github.coffee index 7ba030b..f2c8d56 100644 --- a/scripts/github.coffee +++ b/scripts/github.coffee @@ -14,6 +14,11 @@ GitHubAPI = require 'github' github = new GitHubAPI version: '3.0.0' module.exports = (robot) -> + + if process.env.AUTO_INFORM_ON_START + r = room: process.env.AUTO_INFORM_ON_START.replace(':','#') + robot.send r, 'asjon avviato e operativo!' + robot.router.post '/hubot/githubhook/:room/:name?', (req, res) -> res.send 200 dest = name: req.params.name, room: req.params.room.replace(':','#')