From 0a29208060eae370f2171017d78d1396b6355c86 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 15 Aug 2018 11:58:55 +0100 Subject: gitlab-bot: configure auth for networks The connection with irc.gnome.org was failing because it doesn't support SASL authentication. The bot was modified to allow different auth configurations per network. --- baserock_webserver/gitlab-bot/config.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/baserock_webserver/gitlab-bot/config.js b/baserock_webserver/gitlab-bot/config.js index b94f34c3..a017e232 100644 --- a/baserock_webserver/gitlab-bot/config.js +++ b/baserock_webserver/gitlab-bot/config.js @@ -1,8 +1,18 @@ module.exports = { // IRC server to connect to. servers: { - gimp: 'irc.gimp.org', - freenode: 'irc.freenode.net' + gimp: { + url: 'irc.gimp.org', + nick: 'gitlab-br-bot', + password: '{{ gitlab_bot_password }}', + sasl: false + }, + freenode: { + url: 'irc.freenode.net', + nick: 'gitlab-br-bot', + password: '{{ gitlab_bot_password }}', + sasl: true + } }, // List of channels / people to report to. @@ -122,8 +132,6 @@ module.exports = { ], // IRC nick/names for the bot - nick: 'gitlab-br-bot', - password: '{{ gitlab_bot_password }}', userName: 'gitlab-br-bot', realName: 'Gitlab Bot provided by Baserock', -- cgit v1.2.1