Reorganize General cog #5126

Closed
opened 2021-06-09 12:37:14 +02:00 by RheingoldRiver · 9 comments
RheingoldRiver commented 2021-06-09 12:37:14 +02:00 (Migrated from github.com)

What component of Red (cog, command, API) would you like to see improvements on?

General Cog

Describe the enhancement you're suggesting.

Currently, General cog is a bunch of "fun" commands plus serverinfo. I would like to propose that serverinfo is moved to mod and general is renamed to fun. This way there is no ambiguity about the kinds of commands that are in the cog formerly known as general cog, and bots that don't want "meme" commands but do want serverinfo can simply choose not to install fun.

Anything else?

No response

### What component of Red (cog, command, API) would you like to see improvements on? General Cog ### Describe the enhancement you're suggesting. Currently, General cog is a bunch of "fun" commands plus `serverinfo`. I would like to propose that `serverinfo` is moved to `mod` and `general` is renamed to `fun`. This way there is no ambiguity about the kinds of commands that are in the cog formerly known as general cog, and bots that don't want "meme" commands but do want `serverinfo` can simply choose not to install `fun`. ### Anything else? _No response_
Flame442 commented 2021-06-09 21:39:25 +02:00 (Migrated from github.com)

I doubt we will rename as that would be potentially confusing for existing users for not a whole lot of gain. However, I do agree that moving the command to mod would be a good idea, especially considering [p]userinfo is already in mod. This would need to occur in a major update (3.X.0) as it is a breaking change.

I doubt we will rename as that would be potentially confusing for existing users for not a whole lot of gain. However, I do agree that moving the command to `mod` would be a good idea, especially considering `[p]userinfo` is already in mod. This would need to occur in a major update (3.X.0) as it is a breaking change.
palmtree5 commented 2021-06-09 22:52:53 +02:00 (Migrated from github.com)

I also doubt a rename would happen as it would be confusing. I disagree with sticking [p]serverinfo in Mod though as it isn't really a command useful in moderation imo (whereas [p]userinfo is)

I also doubt a rename would happen as it would be confusing. I disagree with sticking `[p]serverinfo` in `Mod` though as it isn't really a command useful in moderation imo (whereas `[p]userinfo` is)
RheingoldRiver commented 2021-06-10 05:44:12 +02:00 (Migrated from github.com)

I think a rename is important because miscategorizations like one single "useful" command along with a bunch of "fun/useless" commands are a symptom of a name like "general" that provides no semantic value. It's hard to understand what belongs in a cog like this, and so you end up with situations where you have a lot of mismatches of what's where.

I think a rename is important because miscategorizations like one single "useful" command along with a bunch of "fun/useless" commands are a symptom of a name like "general" that provides no semantic value. It's hard to understand what belongs in a cog like this, and so you end up with situations where you have a lot of mismatches of what's where.
phenom4n4n commented 2021-06-10 06:09:00 +02:00 (Migrated from github.com)

I think a rename is important because miscategorizations like one single "useful" command along with a bunch of "fun/useless" commands are a symptom of a name like "general" that provides no semantic value. It's hard to understand what belongs in a cog like this, and so you end up with situations where you have a lot of mismatches of what's where.

Renaming the cog would break existing Cog/module-based settings such as Downloader, Permissions, CustomHelp etc.

> I think a rename is important because miscategorizations like one single "useful" command along with a bunch of "fun/useless" commands are a symptom of a name like "general" that provides no semantic value. It's hard to understand what belongs in a cog like this, and so you end up with situations where you have a lot of mismatches of what's where. Renaming the cog would break existing Cog/module-based settings such as Downloader, Permissions, CustomHelp etc.
Jackenmen commented 2021-06-10 10:16:17 +02:00 (Migrated from github.com)

General cog does not store any settings.

General cog does not store any settings.
Kowlin commented 2021-06-10 10:33:39 +02:00 (Migrated from github.com)

I am very skeptical of renaming the cog as a whole. Personally I do not see a need for it. Besides the above stated issues. The general cog is a good place overall to add in new commands where it isn't a strong addition to any other cog.

While a lot of the stuff in General is absolutely dated. There isn't any need to remove them. They work, and they won't break in their current state. So removing them would not accomplish anything. As there is no need to remove what isn't broken.

I am very skeptical of renaming the cog as a whole. Personally I do not see a need for it. Besides the above stated issues. The general cog is a good place overall to add in new commands where it isn't a strong addition to any other cog. While a lot of the stuff in General is absolutely dated. There isn't any need to remove them. They work, and they won't break in their current state. So removing them would not accomplish anything. As there is no need to remove what isn't broken.
RheingoldRiver commented 2021-06-10 10:41:01 +02:00 (Migrated from github.com)

The general cog is a good place overall to add in new commands where it isn't a strong addition to any other cog

This is an antipattern in software. Names like general or misc or util etc as dumping grounds for things that don't fit elsewhere make for bad end user experience, confusing documentation, hard-to-find commands, etc. Again, why should serverinfo be in the same cog as hug? One of them gives useful information about a server, and the other is for users to spam in chat.

If a command is added, and there's truly no good place to categorize it at present, then perhaps a new cog should be created. Otherwise the end state is one of large confusion for users.

As for compatibility, I guess it would be a separate ticket, but if renaming cogs is this impossible, that seems like a reasonable enhancement unrelated to this suggestion - cog creators should be able to rename cogs if needed, by supplying the previous name in info.json, and Downloader, Permissions, etc should recognize this and update themselves on the next load accordingly?

> The general cog is a good place overall to add in new commands where it isn't a strong addition to any other cog This is an antipattern in software. Names like `general` or `misc` or `util` etc as dumping grounds for things that don't fit elsewhere make for bad end user experience, confusing documentation, hard-to-find commands, etc. Again, why should `serverinfo` be in the same cog as `hug`? One of them gives useful information about a server, and the other is for users to spam in chat. If a command is added, and there's truly no good place to categorize it at present, then perhaps a new cog should be created. Otherwise the end state is one of large confusion for users. As for compatibility, I guess it would be a separate ticket, but if renaming cogs is this impossible, that seems like a reasonable enhancement unrelated to this suggestion - cog creators should be able to rename cogs if needed, by supplying the previous name in `info.json`, and Downloader, Permissions, etc should recognize this and update themselves on the next load accordingly?
Dav-Git commented 2021-06-10 11:22:24 +02:00 (Migrated from github.com)

At least splitting off Serverinfo makes total sense to me. It might fit better in admin than in mod, but it certainly doesn't fit in with the other commands in the General cog.

I think renaming general to fun would be beneficial for the sake of clarity but i can see why this might not be the optimal choice.

At least splitting off Serverinfo makes total sense to me. It might fit better in admin than in mod, but it certainly doesn't fit in with the other commands in the General cog. I think renaming general to fun would be beneficial for the sake of clarity but i can see why this might not be the optimal choice.
Owner

Ein großer Umbau ohne konkreten Plan bzw. Konsens, der weit über einen Fix hinausgeht. Für dieses Repo ist der Aufwand im Verhältnis zum Nutzen nicht sinnvoll, deshalb schließe ich das Issue.


Generated by Claude Code

Ein großer Umbau ohne konkreten Plan bzw. Konsens, der weit über einen Fix hinausgeht. Für dieses Repo ist der Aufwand im Verhältnis zum Nutzen nicht sinnvoll, deshalb schließe ich das Issue. --- _Generated by [Claude Code](https://claude.ai/code)_
Sign in to join this conversation.
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 milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#5126
No description provided.