-
Notifications
You must be signed in to change notification settings - Fork 24
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
added the reload extension command #285
Conversation
iyad-f
commented
Oct 8, 2024
- cogs.admin has been added
- reloadext command has been added to cogs.admin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs some changes I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
||
|
||
class Admin(commands.Cog): | ||
@commands.command(name='reloadext') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not going to be a slash command since we don't wanna go with the overhead of registring it to just one guild where admins is present, we rather go with a prefixed command which only owners of the bot will be able to use. As for the second part of the question how to use this, its simple ?reloadext <extiontion_path> e.g. ?reloadext cogs.admin