Skip to content

Commit

Permalink
Merge pull request #33 from alexdor/master
Browse files Browse the repository at this point in the history
Move consuela to #status-updates
  • Loading branch information
AEtherC0r3 authored Mar 12, 2017
2 parents 9223465 + 3d356e3 commit 6170305
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MinisterIN.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ try {

// Create Mattermost client
if (mattermostConfig.hook_url) var mattermostClient = new mattermost(mattermostConfig.hook_url);
var mattermostBroadcast = function(msg, channel = '#town-square') {
var mattermostBroadcast = function(msg, channel = '#off-topic') {
if (!msg) return;
try {
mattermostClient.send({
Expand Down Expand Up @@ -189,7 +189,7 @@ var broadcastStatusChange = function(newStatus) {
}
});

if (mattermostBroadcast(msg)) spaceOpen = newStatus;
if (mattermostBroadcast(msg, '#status-updates')) spaceOpen = newStatus;
};


Expand Down Expand Up @@ -251,7 +251,7 @@ gh_webhook_handler.on('push', function(event) {
event.payload.commits.forEach(function(commit) {
var msg = '* ' + commit.author.name + ' - ' + commit.message;
ircClient.sayAllChannels(msg);
mattermostBroadcast(msg, '#off-topic');
mattermostBroadcast(msg);
});
});

Expand Down

0 comments on commit 6170305

Please sign in to comment.