Set an ircname, defaulting to source repo URL.
This commit is contained in:
Родитель
d264caf626
Коммит
2c25cfe78b
|
@ -44,6 +44,7 @@ class Bot(irc.client.SimpleIRCClient):
|
||||||
config.IRC_SERVER,
|
config.IRC_SERVER,
|
||||||
config.IRC_PORT,
|
config.IRC_PORT,
|
||||||
config.IRC_NICKNAME,
|
config.IRC_NICKNAME,
|
||||||
|
ircname=config.IRC_REALNAME,
|
||||||
connect_factory=factory
|
connect_factory=factory
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,9 @@ IRC_NICKNAME = os.environ.get('IRC_NICKNAME', 'releasehealth')
|
||||||
# IRC server port.
|
# IRC server port.
|
||||||
IRC_PORT = int(os.environ.get('IRC_PORT', 6667))
|
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.
|
# 1 to enable SSL; 0 to disable SSL.
|
||||||
IRC_SSL = bool(int(os.environ.get('IRC_SSL', 0)))
|
IRC_SSL = bool(int(os.environ.get('IRC_SSL', 0)))
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче