2014-06-09 19:26:35 +00:00
|
|
|
config = dict(
|
|
|
|
irc=[
|
|
|
|
dict(
|
|
|
|
network='chat.freenode.net',
|
|
|
|
port=6667,
|
|
|
|
make_pretty=True,
|
|
|
|
make_terse=True,
|
|
|
|
|
2014-06-09 20:23:08 +00:00
|
|
|
{% if env == 'staging' %}
|
2014-06-09 19:26:35 +00:00
|
|
|
nickname='fedmsg-stg',
|
2014-06-09 20:10:06 +00:00
|
|
|
{% else %}
|
2014-06-09 19:26:35 +00:00
|
|
|
nickname='fedmsg-bot',
|
2014-06-09 20:10:06 +00:00
|
|
|
{% endif %}
|
2014-06-09 19:26:35 +00:00
|
|
|
channel='fedora-fedmsg',
|
|
|
|
|
|
|
|
filters=dict(
|
|
|
|
topic=[
|
2015-05-11 13:54:50 +00:00
|
|
|
# Ignore some of the koji spamminess
|
2014-06-09 19:26:35 +00:00
|
|
|
'buildsys.repo.init',
|
|
|
|
'buildsys.repo.done',
|
|
|
|
'buildsys.untag',
|
|
|
|
'buildsys.tag',
|
2015-05-11 13:54:50 +00:00
|
|
|
# And some of the FAF/ABRT spamminess
|
|
|
|
'faf.report.threshold1',
|
|
|
|
'faf.problem.threshold1',
|
2014-06-09 19:26:35 +00:00
|
|
|
],
|
|
|
|
body=[],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
2015-06-18 19:36:29 +00:00
|
|
|
# For fedora-apps
|
|
|
|
dict(
|
|
|
|
network='chat.freenode.net',
|
|
|
|
port=6667,
|
|
|
|
make_pretty=True,
|
|
|
|
make_terse=True,
|
|
|
|
|
|
|
|
{% if env == 'staging' %}
|
|
|
|
nickname='fedmsg-apps-s',
|
|
|
|
{% else %}
|
|
|
|
nickname='fedmsg-apps',
|
|
|
|
{% endif %}
|
|
|
|
channel='fedora-apps',
|
|
|
|
filters=dict(
|
|
|
|
topic=[
|
2015-07-09 18:28:50 +00:00
|
|
|
'^((?!(github\.create|github\.issue\.|github\.pull_request|github\.commit_comment|github\.star|pagure)).)*$',
|
2015-06-18 19:36:29 +00:00
|
|
|
],
|
|
|
|
body=[
|
2015-06-20 11:06:20 +00:00
|
|
|
"^((?!(fedora-infra|u'name': u'pagure')).)*$",
|
2015-06-18 19:36:29 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
# For fedora-hubs (not fedora-apps)
|
|
|
|
dict(
|
|
|
|
network='chat.freenode.net',
|
|
|
|
port=6667,
|
|
|
|
make_pretty=True,
|
|
|
|
make_terse=True,
|
|
|
|
|
|
|
|
{% if env == 'staging' %}
|
|
|
|
nickname='fedmsg-hubs-s',
|
|
|
|
{% else %}
|
|
|
|
nickname='fedmsg-hubs',
|
|
|
|
{% endif %}
|
|
|
|
channel='fedora-hubs',
|
|
|
|
filters=dict(
|
|
|
|
topic=[
|
2015-07-01 14:02:31 +00:00
|
|
|
'^((?!(github\.create|github\.issue\.|github\.pull_request\.|github\.commit_comment|github\.star|pagure)).)*$',
|
2015-06-18 19:36:29 +00:00
|
|
|
],
|
|
|
|
body=[
|
|
|
|
"^((?!(fedora-hubs)).)*$",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
2015-07-01 13:41:49 +00:00
|
|
|
# For that commops crew!
|
|
|
|
dict(
|
|
|
|
network='chat.freenode.net',
|
|
|
|
port=6667,
|
|
|
|
make_pretty=True,
|
|
|
|
make_terse=True,
|
|
|
|
|
|
|
|
{% if env == 'staging' %}
|
2015-07-01 15:35:47 +00:00
|
|
|
nickname='commopsbot-s',
|
2015-07-01 13:41:49 +00:00
|
|
|
{% else %}
|
2015-07-01 15:35:47 +00:00
|
|
|
nickname='commopsbot',
|
2015-07-01 13:41:49 +00:00
|
|
|
{% endif %}
|
|
|
|
channel='fedora-commops',
|
|
|
|
filters=dict(
|
|
|
|
topic=[
|
2015-07-06 15:55:54 +00:00
|
|
|
'^((?!(planet|fedora_elections|meetbot\.meeting\.item\.help|meetbot\.meeting\.complete|github\.star|github\.fork|github\.release|fedocal\.meeting\.new|fedocal\.meeting\.update|fedocal\.meeting\.delete|fedocal\.calendar|fas\.group\.member\.sponsor|fedbadges\.person\.login\.first|pagure\.project\.new|askbot\.post\.flag_offensive|anitya\.distro\.add|anitya\.project\.map\.new)).)*$',
|
2015-07-01 13:41:49 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
2014-06-09 19:26:35 +00:00
|
|
|
# Just for the Ask Fedora crew in #fedora-ask
|
|
|
|
dict(
|
|
|
|
network='chat.freenode.net',
|
|
|
|
port=6667,
|
|
|
|
make_pretty=True,
|
|
|
|
make_terse=True,
|
|
|
|
|
2014-06-09 20:23:08 +00:00
|
|
|
{% if env == 'staging' %}
|
2014-06-09 19:26:35 +00:00
|
|
|
nickname='fedmsg-ask-stg',
|
2014-06-09 20:10:06 +00:00
|
|
|
{% else %}
|
2014-06-09 19:26:35 +00:00
|
|
|
nickname='fedmsg-ask',
|
2014-06-09 20:10:06 +00:00
|
|
|
{% endif %}
|
2014-06-09 19:26:35 +00:00
|
|
|
channel='fedora-ask',
|
|
|
|
# Only show AskFedora messages
|
|
|
|
filters=dict(
|
|
|
|
topic=['^((?!askbot).)*$'],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
# Show only pkgdb retirement msgs and compose msgs to the releng crew.
|
|
|
|
dict(
|
|
|
|
network='chat.freenode.net',
|
|
|
|
port=6667,
|
|
|
|
make_pretty=True,
|
|
|
|
make_terse=True,
|
|
|
|
|
2014-06-09 20:23:08 +00:00
|
|
|
{% if env == 'staging' %}
|
2014-06-09 19:26:35 +00:00
|
|
|
nickname='fedmsg-releng-s',
|
2014-06-09 20:10:06 +00:00
|
|
|
{% else %}
|
2014-06-09 19:26:35 +00:00
|
|
|
nickname='fedmsg-releng',
|
2014-06-09 20:10:06 +00:00
|
|
|
{% endif %}
|
2014-06-09 19:26:35 +00:00
|
|
|
channel='fedora-releng',
|
|
|
|
filters=dict(
|
|
|
|
topic=[
|
2015-02-20 21:12:28 +00:00
|
|
|
'^((?!(pkgdb\.package\.update\.status|compose.branched.complete|compose.branched.start|compose.rawhide.complete|compose.rawhide.start|bodhi.updates.|trac.git.receive)).)*$',
|
2014-06-09 19:26:35 +00:00
|
|
|
],
|
|
|
|
body=[
|
|
|
|
"^((?!(u'status': u'Retired'|u'prev_status': u'Retired'|compose|bodhi\.updates\.|\/srv\/git\/releng)).)*$",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
# The proyectofedora crew wants trac messages.
|
|
|
|
dict(
|
|
|
|
network='chat.freenode.net',
|
|
|
|
port=6667,
|
|
|
|
make_pretty=True,
|
|
|
|
make_terse=True,
|
|
|
|
|
2014-06-09 20:23:08 +00:00
|
|
|
{% if env == 'staging' %}
|
2014-06-09 19:26:35 +00:00
|
|
|
nickname='fedmsg-pfi-stg',
|
2014-06-09 20:10:06 +00:00
|
|
|
{% else %}
|
2014-06-09 19:26:35 +00:00
|
|
|
nickname='fedmsg-pfi',
|
2014-06-09 20:10:06 +00:00
|
|
|
{% endif %}
|
2014-06-09 19:26:35 +00:00
|
|
|
channel='#proyecto-fedora',
|
|
|
|
# If the word proyecto appears in any message, forward it.
|
|
|
|
filters=dict(
|
|
|
|
body=['^((?!proyecto).)*$'],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
# Similarly for #fedora-latam.
|
|
|
|
dict(
|
|
|
|
network='chat.freenode.net',
|
|
|
|
port=6667,
|
|
|
|
make_pretty=True,
|
|
|
|
make_terse=True,
|
|
|
|
|
2014-06-09 20:23:08 +00:00
|
|
|
{% if env == 'staging' %}
|
2014-06-09 19:26:35 +00:00
|
|
|
nickname='fedmsg-latam-stg',
|
2014-06-09 20:10:06 +00:00
|
|
|
{% else %}
|
2014-06-09 19:26:35 +00:00
|
|
|
nickname='fedmsg-latam',
|
2014-06-09 20:10:06 +00:00
|
|
|
{% endif %}
|
2014-06-09 19:26:35 +00:00
|
|
|
channel='#fedora-latam',
|
|
|
|
# If the word fedora-latam appears in any message, forward it.
|
|
|
|
filters=dict(
|
|
|
|
body=['^((?!fedora-latam).)*$'],
|
|
|
|
),
|
|
|
|
),
|
2014-09-30 14:24:15 +00:00
|
|
|
|
|
|
|
# Hook up the design-team with badges messages
|
|
|
|
dict(
|
|
|
|
network='chat.freenode.net',
|
|
|
|
port=6667,
|
|
|
|
make_pretty=True,
|
|
|
|
make_terse=True,
|
|
|
|
|
|
|
|
{% if env == 'staging' %}
|
|
|
|
nickname='fedmsg-design-stg',
|
|
|
|
{% else %}
|
|
|
|
nickname='fedmsg-design',
|
|
|
|
{% endif %}
|
|
|
|
channel='#fedora-design',
|
|
|
|
filters=dict(
|
2015-01-20 16:43:35 +00:00
|
|
|
body=['^((?!(fedora-badges|design-team|fedoradesign)).)*$'],
|
2014-09-30 14:24:15 +00:00
|
|
|
),
|
|
|
|
),
|
2014-10-06 15:38:21 +00:00
|
|
|
|
|
|
|
# And #fedora-docs wants in on the action
|
|
|
|
dict(
|
|
|
|
network='chat.freenode.net',
|
|
|
|
port=6667,
|
|
|
|
make_pretty=True,
|
|
|
|
make_terse=True,
|
2014-10-09 16:04:52 +00:00
|
|
|
make_short=True,
|
2014-10-06 15:38:21 +00:00
|
|
|
|
|
|
|
{% if env == 'staging' %}
|
|
|
|
nickname='fedmsg-docs-stg',
|
|
|
|
{% else %}
|
|
|
|
nickname='fedmsg-docs',
|
|
|
|
{% endif %}
|
|
|
|
channel='#fedora-docs',
|
|
|
|
filters=dict(
|
|
|
|
body=['^((?!\/srv\/git\/docs).)*$'],
|
|
|
|
),
|
|
|
|
),
|
2014-06-09 19:26:35 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
### Possible colors are ###
|
|
|
|
# "white",
|
|
|
|
# "black",
|
|
|
|
# "blue",
|
|
|
|
# "green",
|
|
|
|
# "red",
|
|
|
|
# "brown",
|
|
|
|
# "purple",
|
|
|
|
# "orange",
|
|
|
|
# "yellow",
|
|
|
|
# "light green",
|
|
|
|
# "teal",
|
|
|
|
# "light cyan",
|
|
|
|
# "light blue",
|
|
|
|
# "pink",
|
|
|
|
# "grey",
|
|
|
|
# "light grey",
|
|
|
|
irc_color_lookup = {
|
|
|
|
"fas": "light blue",
|
|
|
|
"bodhi": "green",
|
|
|
|
"git": "red",
|
|
|
|
"fedoratagger": "brown",
|
|
|
|
"wiki": "purple",
|
|
|
|
"logger": "orange",
|
|
|
|
"pkgdb": "teal",
|
|
|
|
"buildsys": "yellow",
|
|
|
|
"fedoraplanet": "light green",
|
|
|
|
"trac": "pink",
|
|
|
|
"askbot": "light cyan",
|
|
|
|
"fedbadges": "brown",
|
|
|
|
"fedocal": "purple",
|
|
|
|
"copr": "red",
|
2015-02-21 03:50:50 +00:00
|
|
|
"anitya": "light cyan",
|
|
|
|
"fmn": "light blue",
|
|
|
|
"hotness": "light green",
|
2014-06-09 19:26:35 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
# This may be 'notice' or 'msg'
|
|
|
|
irc_method='msg',
|
|
|
|
)
|