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(':','#')