aggiunto auto messaggio all'avvio
This commit is contained in:
parent
cfade838af
commit
8cecac6400
@ -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(':','#')
|
||||
|
Loading…
Reference in New Issue
Block a user