Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mutes/Core] RelativeDeltaWithReason #5402

Open
wants to merge 22 commits into
base: V3/develop
Choose a base branch
from

Conversation

Flame442
Copy link
Member

This PR takes the converter from the mutes cog which converts a string into a timedelta and a string reason and adds it to redbot.core.commands.converter. Also implements a version of this converter which produces a relativedelta and a string reason, as well as functions which can be used to just do the conversion process on an arbitrary string. Swaps mutes to use redbot.core.commands.converter converters, including these.

Specific implementation details are subject to change, including typehints and method names. Some things I really just did not understand are omitted. This PR is untested beyond ensuring it works under the most expected of situations.

This PR serves to satisfy the mutes part of #5244. This PR implements the changes to the regex present in #5393 in new regex strings, however does not modify the existing strings in an attempt to not conflict with that PR.

@Flame442 Flame442 added Type: Feature New feature or request. Category: Core - API - Commands Package This is related to the `redbot.core.commands` package or `redbot.core.checks` module. Category: Core - API - Utils Package This is related to stuff in `redbot.core.utils` Category: Cogs - Mutes This is related to the Mutes cog. labels Oct 16, 2021
@Flame442 Flame442 requested a review from TrustyJAID October 16, 2021 23:58
@flaree
Copy link
Member

flaree commented Mar 25, 2023

Can you solve the 2 conflicts when you get a chance?

@Flame442 Flame442 modified the milestones: 3.5.0, 3.5.1 Apr 13, 2023
@Flame442
Copy link
Member Author

Flame442 commented Jan 2, 2024

Conflicts have been resolved

@Jackenmen Jackenmen modified the milestones: 3.5.6, 3.5.7 Mar 18, 2024
@Jackenmen Jackenmen modified the milestones: 3.5.9, 3.5.10 Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Cogs - Mutes This is related to the Mutes cog. Category: Core - API - Commands Package This is related to the `redbot.core.commands` package or `redbot.core.checks` module. Category: Core - API - Utils Package This is related to stuff in `redbot.core.utils` Type: Feature New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants