Closed alexraskin closed 6 months ago
@KOOKIIEStudios Is this okay to merged in?
@KOOKIIEStudios Is this okay to merged in?
I think we decided to keep the sync on start, just cause we want the project to be as PnP as possible. Especially for people who are setting up the bot with little technical experience. TLDR; we are trying to avoid adding anymore steps to the initial set up. We think the risk of them rate-limiting themselves is low.
@KOOKIIEStudios Is this okay to merged in?
I think we decided to keep the sync on start, just cause we want the project to be as PnP as possible. Especially for people who are setting up the bot with little technical experience. TLDR; we are trying to avoid adding anymore steps to the initial set up. We think the risk of them rate-limiting themselves is low.
Fair enough!
This PR restructures how the bot handles syncing slash commands with discord. Previously, the sync operation was automatically triggered within the
on_ready
event, which could lead to unintended behavior and limited control over when and how synchronization occurred.Command Implementation: The sync function has been encapsulated into a new command, !sync. This command can be invoked by users with appropriate permissions.
Testing: Verify that the
!sync
command responds as expected.Updated the README and command documentation to include information about the new !sync command, including usage examples and permission requirements.