From 2c25cfe78b04f0e831a0941fb730a8fe0b67a443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20C=C3=B4t=C3=A9?= Date: Tue, 19 Apr 2016 14:01:23 -0400 Subject: [PATCH] Set an ircname, defaulting to source repo URL. --- releasehealth/bot.py | 1 + releasehealth/config.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/releasehealth/bot.py b/releasehealth/bot.py index def603b..eda4795 100644 --- a/releasehealth/bot.py +++ b/releasehealth/bot.py @@ -44,6 +44,7 @@ class Bot(irc.client.SimpleIRCClient): config.IRC_SERVER, config.IRC_PORT, config.IRC_NICKNAME, + ircname=config.IRC_REALNAME, connect_factory=factory ) diff --git a/releasehealth/config.py b/releasehealth/config.py index 4dbb0ec..c331d0b 100644 --- a/releasehealth/config.py +++ b/releasehealth/config.py @@ -30,6 +30,9 @@ IRC_NICKNAME = os.environ.get('IRC_NICKNAME', 'releasehealth') # IRC server port. IRC_PORT = int(os.environ.get('IRC_PORT', 6667)) +# "ircname", aka real name. +IRC_REALNAME = 'https://github.com/mozilla/releasehealth-bot' + # 1 to enable SSL; 0 to disable SSL. IRC_SSL = bool(int(os.environ.get('IRC_SSL', 0)))