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

Help command doesn't subclass HelpCommand #1265

Closed
1 of 2 tasks
n0Oo0Oo0b opened this issue May 5, 2023 · 6 comments
Closed
1 of 2 tasks

Help command doesn't subclass HelpCommand #1265

n0Oo0Oo0b opened this issue May 5, 2023 · 6 comments
Labels
status: planning Discussing details type: feature Relating to the functionality of the application.

Comments

@n0Oo0Oo0b
Copy link

Description

Lancebot's current help command doesn't subclass HelpCommand, unlike Python's. The former should be changed to match the latter because subclassing HelpCommand is the preferred way of creating custom help commands.

Reasoning

This wouldn't change anything for the end user, but internally, the bot will be able to do things like ctx.send_help(ctx.command)

Proposed Implementation

Replace Lancebot's help command with Python's new help command.

Additional Details

I think we should also consider moving the help command to bot-core instead because it is common functionality for all bots.

Would you like to implement this yourself?

  • I'd like to implement this feature myself
  • Anyone can implement this feature
@n0Oo0Oo0b n0Oo0Oo0b added status: planning Discussing details type: feature Relating to the functionality of the application. labels May 5, 2023
@n0Oo0Oo0b
Copy link
Author

This comment also mentions that changes to Python's help command should also be applied here, but the changes in python-discord/bot#519 (which refactored Python's help command to subclass HelpCommand) hasn't made it to Lancebot yet.

@TizzySaurus
Copy link
Contributor

TizzySaurus commented May 5, 2023

Isn't the better thing here having the help command logic in bot-core, which the two bots both then import and use? Then you don't have to worry about one bot being behind ahead/behind the other etc.. Fwiw, this is part of python-discord/bot-core#85,.

@eamanu
Copy link

eamanu commented May 5, 2023

It's not a good idea have the same logic in two (or more) places, why don't move the logic to a common place? like a module?

@TizzySaurus
Copy link
Contributor

TizzySaurus commented May 5, 2023

It's not a good idea have the same logic in two (or more) places, why don't move the logic to a common place? like a module?

@eamanu Yep! That's exactly what bot-core is, and what I just mentioned.

@eamanu
Copy link

eamanu commented May 5, 2023

Sorry, I didn't read your comment @TizzySaurus well. Yes, that is better.

@ChrisLovering
Copy link
Member

Duplicate of #470

@ChrisLovering ChrisLovering marked this as a duplicate of #470 May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: planning Discussing details type: feature Relating to the functionality of the application.
Projects
None yet
Development

No branches or pull requests

4 participants