aggiunto auto messaggio all'avvio

This commit is contained in:
Enrico Fasoli 2015-04-26 20:41:44 +02:00
parent cfade838af
commit 8cecac6400

View File

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