#7425 fedmsg-python bot spams #fedora-python
Closed: Fixed 5 years ago Opened 5 years ago by churchyard.

  • Describe what you need us to do:
    Check who operates fedmsg-python bot in #fedora-python. Make them make the bot less verbose. Alternatively, ban the bot if the owner is unknown.

  • When do you need this? Any time.

  • When is this no longer needed or useful? Once the bot stops being so verbose.

  • If we cannot complete your request, what is the impact? Nerves!

Thanks.


We operate fedmsg-python, it's a bot run by us to notify on fedmsgs to irc.

It looks like this particular one was added for the python3 porting fad in 2015.

It's currently set to notify on:

  • filters=dict(
  • topic=[
  • '^((?!(github)).)*$',
  • ],
  • body=[
  • '^((?!(portingdb)).)*$',
  • ],
  • ),

anything with github and portingdb in the message. What would you like it to notify on?

Metadata Update from @kevin:
- Issue priority set to: Waiting on Assignee (was: Needs Review)

5 years ago

I think those would do:

  • github.pull_request.opened
  • github.issue.opened

Also, if we could replace portingdb with fedora-python (that gives us more messages, but given the above, it should be manageable).

Is this filter in a git repo where we can send PRs?

Thank You!

It is in the main ansible as roles/fedmsg/irc/templates/ircbot.py

        # For that python3 porting fad.  AMAZING!                                                                                                                            
        dict(
            network='chat.freenode.net',
            port=6667,
            make_pretty=True,
            make_terse=True,

            {% if env == 'staging' %}
            nickname='fedmsg-python-s',
            {% else %}
            nickname='fedmsg-python',
            {% endif %}
            channel='fedora-python',
            filters=dict(
                topic=[
                    '^((?!(github)).)*$',
                ],
                body=[
                    '^((?!(portingdb)).)*$',
                ],
            ),
        ),

It is in the main ansible as roles/fedmsg/irc/templates/ircbot.py

Is that pull-requestable? Do you have link please?

No, it is not yet. We do hope to have PR's available for it soon.

(waiting on https://pagure.io/pagure/pull-request/4054 landing in our pagure.io instance)

Metadata Update from @smooge:
- Issue assigned to smooge

5 years ago

I have added the following to the bot

                topic=[
                    '^((?!(github\.create|github\.issue\.open|github\.pull_request\.open)).)*$',
                ],

Metadata Update from @smooge:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Metadata Update from @churchyard:
- Issue status updated to: Open (was: Closed)

5 years ago

Could you please also change the body to match fedora-python/?

My mistake. I missed that part of the request. I have updated it and rolled it out. Please test and let me know.

Hopefully this is done now... :clock830:

Metadata Update from @kevin:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Thank You. I'll report back if it doesn't work properly.

Login to comment on this ticket.

Metadata