Move modlogset/bankset commands to core #4486
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!4486
Loading…
Reference in a new issue
No description provided.
Delete branch "V3/move_modlog_bank_commands"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Description of the changes
Fixes #4128
Fixes #3709
This accomplishes everything on the list in the mentioned issue, though I did this by simply moving the commands over. The only renames happening here are:
[p]economyset registeramount->[p]bankset registeramount[p]bank reset->[p]bankset reset[p]bank prune-> [p]bankset prune`This obviously removes the
Bankcog. TheModlogcog remains with 3 commands ([p]case,[p]casesfor, and[p]reason)Other changes
RawUserIdConvertertoredbot.core.commandsis_owner_if_bank_globaltoredbot.core.bank(#3709)I don't think this move serves it's intended purpose without grouping all commands under
set. The idea was to have all settings in one place which this PR doesn't really accomplish now.If the commands were moved into the
setcommand group we would have achieved that goal.There's such a thing as having too many commands, when the audio api is done for example it will not be under set due to the number of commands it will introduce. I disbelieve that every single global configuration command must be under set... that becomes a mess of a user experience as there's too many commands under a single group to deal with
I agree with Draper. Commands for configuring APIs on the bot (like modlog and bank) should absolutely be in the core cog, but I also feel they should not all be under
[p]setas that will result in a further mess (which is already the case there meaning we may wish to do some regrouping of[p]set's subcommands either by creating command groups under it or splitting things out of[p]setinto their own groups to group relevant commands together)That's a good point. A regrouping of set commands to sort them by core API /feature they belong to makes sense. However with these groups any commands that control core or API settings need to be in
setSo this PR was already a breaking change for the command moves and renames but initially there was an issue with tests failing, necessitating moving
redbot.cogs.mod.converters.RawUserIds. I wound up moving that toredbot.core.commands.converter.RawUserIdsand getting rid ofredbot.cogs.mod.convertersmeaning that particular converter would be covered in our version guarantees moving forward.Merge conflicts have been fixed on this one. Should hopefully have not broken anything either but still probably needs testing to be sure of that
Ok, NOW the merge conflicts have actually been fixed (after I managed to miss a couple trying to resolve in vscode lol).
This should be
[p]bankset registeramount 5000There was some talk in AC this morning about some setting info that is duplicated in both bankset showsettings and economyset showsettings (max balance and default initial balance) where they should be removed from the economy settings and just have them available in bank settings.
https://discord.com/channels/133049272517001216/718148684629540905/868174816082006036
https://discord.com/channels/133049272517001216/718148684629540905/868181565878960168
@palmtree5 If you have some time to resolve the conflicts that have shown up here since May, I think I could go ahead with getting this reviewed and merged soon.
Let me know if you won't have time for this and I'll try finding some time to resolve these conflicts myself.
I'll try to look at this in the next couple days
@jack1142 conflicts have been resolved on this and checks have passed
LGTM