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)))