Sort subcommand names #68

Merged
Chiggy-Playz merged 1 commits from patch-1 into 2.0 2021-09-26 05:43:23 +00:00
Chiggy-Playz commented 2021-09-20 12:43:00 +00:00 (Migrated from github.com)

Summary

This PR makes subcommands register in alphabetical order.

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)
<!-- Pull requests that do not fill this information in will likely be closed --> ## Summary <!-- What is this pull request for? Does it fix any issues? --> This PR makes subcommands register in alphabetical order. ## Checklist <!-- Put an x inside [ ] to check it, like so: [x] --> - [x] If code changes were made then they have been tested. - [ ] I have updated the documentation to reflect the changes. - [ ] This PR fixes an issue. - [ ] This PR adds something new (e.g. new method or parameters). - [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed) - [ ] This PR is **not** a code change (e.g. documentation, README, ...)
Chiggy-Playz commented 2021-09-23 06:41:44 +00:00 (Migrated from github.com)

Btw, example of what the PR changes. Left side is New, right side is old. Earlier, subcommands weren't specifically alphabetically ordered. And they also got shuffled on each bot restart since self.commands is not fixed everytime (its a set I think). So this PR sorts it so the subcommands are always alphabetically sorted.

example

Btw, example of what the PR changes. Left side is New, right side is old. Earlier, subcommands weren't specifically alphabetically ordered. And they also got shuffled on each bot restart since `self.commands` is not fixed everytime (its a set I think). So this PR sorts it so the subcommands are always alphabetically sorted. ![example](https://user-images.githubusercontent.com/49774426/134464199-8784f954-14e0-4a80-a053-8dd61a2ec755.png)
IAmTomahawkx (Migrated from github.com) approved these changes 2021-09-26 05:42:55 +00:00
Sign in to join this conversation.
No description provided.