mirror of
https://github.com/scummvm/dockerized-bb.git
synced 2026-06-20 05:46:00 +00:00
MASTER: Add IRC reporter
This commit is contained in:
1 parent
a5cf74e931
commit
b648dfce7f
2 files changed
+39
No files matched your search
@@ -41,4 +41,19 @@ www_port = ("127.0.0.1", 8010)
|
||||
# URL used to reach Buildbot instance
|
||||
buildbotURL = "https://buildbot.scummvm.org/"
|
||||
|
||||
# IRC configuration
|
||||
#irc = {
|
||||
# 'server': 'chat.freenode.net',
|
||||
# 'port': 7000,
|
||||
# 'ssl': True,
|
||||
# 'nick': 'Scummette',
|
||||
# 'password': 'password',
|
||||
# 'channels': [
|
||||
# '#scummvm'
|
||||
# ],
|
||||
# 'nicks': ['someuser'],
|
||||
# 'admins': ['someuser'],
|
||||
#}
|
||||
|
||||
|
||||
htfile = './scumm_htpasswd'
|
||||
@@ -41,3 +41,27 @@ try:
|
||||
except TypeError:
|
||||
www['port'] = "tcp:{0}".format(config.www_port)
|
||||
|
||||
if hasattr(config, 'irc') and config.irc:
|
||||
services.append(reporters.IRC(
|
||||
host=config.irc['server'],
|
||||
port=config.irc.get('port', 6667),
|
||||
useSSL=config.irc.get('ssl', False),
|
||||
nick=config.irc['nick'],
|
||||
password=config.irc.get('password', None),
|
||||
channels=config.irc.get('channels', []),
|
||||
pm_to_nicks=config.irc.get('nicks', []),
|
||||
useColors=True,
|
||||
authz={
|
||||
# Order of match is 'command', '*', ''/'!'
|
||||
# Operation restricted to bot administrators
|
||||
'': config.irc.get('admins', False),
|
||||
# No dangerous command can be issued on IRC (real authentication required)
|
||||
'!': False,
|
||||
},
|
||||
notify_events=[
|
||||
'exception',
|
||||
'problem',
|
||||
'recovery',
|
||||
'worker'
|
||||
]
|
||||
))
|
||||
Reference in new issue
Block a user