Skip to content

Add support for !infractions by <m|me|uid>#1926

Merged
jchristgit merged 6 commits into
mainfrom
infractions-by-command
Nov 10, 2021
Merged

Add support for !infractions by <m|me|uid>#1926
jchristgit merged 6 commits into
mainfrom
infractions-by-command

Conversation

@TizzySaurus
Copy link
Copy Markdown
Contributor

Closes #1922.

Added support for !infractions by subcommand. See issue for more details on command usage & invocation.

@TizzySaurus TizzySaurus added t: feature New feature or request a: backend Related to internal functionality and utilities (error_handler, logging, security, utils and core) a: moderation Related to community moderation functionality: (moderation, defcon, verification) p: 3 - low Low Priority s: needs review Author is waiting for someone to review and approve labels Oct 31, 2021
@TizzySaurus TizzySaurus force-pushed the infractions-by-command branch from 31b3d60 to f315f4c Compare November 1, 2021 21:07
Comment thread bot/exts/moderation/infraction/management.py Outdated
Comment thread bot/exts/moderation/infraction/management.py Outdated
Comment thread bot/exts/moderation/infraction/management.py Outdated
@TizzySaurus TizzySaurus force-pushed the infractions-by-command branch from c904d21 to d79b069 Compare November 2, 2021 09:52
@TizzySaurus
Copy link
Copy Markdown
Contributor Author

@mbaruh I'm not able to reply to your reviews for some reason but they've all been addressed in d79b069 👍

@TizzySaurus TizzySaurus requested a review from mbaruh November 2, 2021 09:56
- Add `format_infraction_count` and migrate
- Improve logic for `actor` being `"m"`/`"me"`
- Rename `search_by_user` to `search_by_actor`
- Better Ordering Logic (thanks @ChrisLovering)
- Make embed title consistent with other search embeds
@TizzySaurus TizzySaurus force-pushed the infractions-by-command branch from d79b069 to 06d0c8f Compare November 2, 2021 16:38
Copy link
Copy Markdown
Contributor

@jchristgit jchristgit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readability nitpick aside, this looks good to merge (feel free to dismiss or re-request my review when it's addressed).

Comment thread bot/exts/moderation/infraction/management.py Outdated
@TizzySaurus
Copy link
Copy Markdown
Contributor Author

I'm still not able to reply to reviews for some reason but have fixed @jchristgit 👍

Copy link
Copy Markdown
Contributor

@jchristgit jchristgit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rock solid, thank you.

@jchristgit jchristgit enabled auto-merge November 4, 2021 08:25
Comment thread bot/exts/moderation/infraction/management.py
@TizzySaurus
Copy link
Copy Markdown
Contributor Author

Still can't reply to reviews (GitHub seems to hate me) but you're perfectly right. Have just fixed @Bluenix2 👍

Copy link
Copy Markdown
Member

@mbaruh mbaruh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks 99% good, just two small comments.

Comment thread bot/exts/moderation/infraction/management.py Outdated
Comment thread bot/exts/moderation/infraction/management.py
Embed for `!infractions by` no longer has the author in codeblock.
@TizzySaurus TizzySaurus requested a review from mbaruh November 10, 2021 09:01
@TizzySaurus TizzySaurus requested a review from Bluenix2 November 10, 2021 09:01
Copy link
Copy Markdown
Member

@mbaruh mbaruh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jchristgit jchristgit merged commit 3a23e56 into main Nov 10, 2021
@jchristgit jchristgit deleted the infractions-by-command branch November 10, 2021 09:53
@Xithrius Xithrius removed the s: needs review Author is waiting for someone to review and approve label Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: backend Related to internal functionality and utilities (error_handler, logging, security, utils and core) a: moderation Related to community moderation functionality: (moderation, defcon, verification) p: 3 - low Low Priority t: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for !infractions by {moderator}

5 participants