mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-07-19 13:54:44 -04:00
[GH-ISSUE #182] Regrouping a few commands #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @dio-gh on GitHub (Jan 18, 2019).
Original GitHub issue: https://github.com/RPCS3/discord-bot/issues/182
As I was writing #180, I noticed that
!psn check updates XXXXYYYYYis terribly long. There are a few ways of going about this, but first and foremost I think regrouping thepsnsubcommands should be the way to go.The current hierarchy looks like this:
psn=>{ psn check | psn fix | psn rescan }=>{ psn check updates | psn check content }As you can see, at the third level the commands are pretty damn long, and this isn't even with the parameters they recieve. There's numerous ways, as always, you can regroup this, but here's mine:
First, I don't think specifying
psnreally adds that much of a meaning tocheck updatesorcheck content. In the former case, you really don't care about where the update list is coming from, and in the latter, it doesn't even directly come from PSN but from our mirror. So, while it is important to specifypsnin the cases offixandrescan, forcheckit just isn't.Therefore, it can be removed, or more accurately saying, the
checksubgroup can be moved out from thepsnsupergroup into its own, without breaking any readability considerations.Take then the following grouping:
psn=>{ psn fix | psn rescan }check=>{ check updates | check content }The commands are suddenly much shorter, but still hold the same meaning, while also retaining their sentence-like feel.
Whilst thinking about more reasons to recreate the
checktoken as a standalone command group, my attention turned towards the!irdcommand. You for sure check for an.ird, and it is pretty fitting all things considered. And so while we're at it, I also recommend moving theirdcommand group below thecheckgroup as follows:psn=>{ psn fix | psn rescan }check=>{ check updates | check content | check ird }This will need all the related
helpandexplaincommands to be updated too, of course.@dio-gh commented on GitHub (Oct 3, 2021):
Slash commands take care of the command names being too long, and I disagree with the laid out schema by now.
Regrouping a few commandsto [GH-ISSUE #182] Regrouping a few commands