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

Move help cog to cogs directory #22

Merged
merged 1 commit into from
Oct 27, 2024
Merged

Move help cog to cogs directory #22

merged 1 commit into from
Oct 27, 2024

Conversation

outmaneuver
Copy link
Owner

Remove the default help command and move the custom help command to a new cog.

  • Set help_command to None in the SelfBot class constructor in selfbot.py to remove the default help command.
  • Remove the custom help command help_command from the SelfBot class in selfbot.py.
  • Create a new cog file cogs/help_cog.py for the custom help command.
  • Define a HelpCog class that inherits from commands.Cog in cogs/help_cog.py.
  • Move the custom help command help_command to the HelpCog class in cogs/help_cog.py.
  • Add a setup function to add the HelpCog to the bot in cogs/help_cog.py.

Remove the default help command and move the custom help command to a new cog.

* Set `help_command` to `None` in the `SelfBot` class constructor in `selfbot.py` to remove the default help command.
* Remove the custom help command `help_command` from the `SelfBot` class in `selfbot.py`.
* Create a new cog file `cogs/help_cog.py` for the custom help command.
* Define a `HelpCog` class that inherits from `commands.Cog` in `cogs/help_cog.py`.
* Move the custom help command `help_command` to the `HelpCog` class in `cogs/help_cog.py`.
* Add a `setup` function to add the `HelpCog` to the bot in `cogs/help_cog.py`.
@outmaneuver outmaneuver merged commit 978b307 into main Oct 27, 2024
1 of 2 checks passed
@outmaneuver outmaneuver deleted the move-help-cog branch October 27, 2024 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant