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

Virtual branch 1 #157

Merged
merged 2 commits into from
Oct 11, 2024
Merged

Virtual branch 1 #157

merged 2 commits into from
Oct 11, 2024

Commits on Oct 11, 2024

  1. feat(cluster): enable recluster and heartbeat management

    The changes in this commit are focused on improving the cluster management and stability of the application. The main changes are:
    
    1. Implementing the `HeartbeatManager` and `ReClusterManager` from the `discord-hybrid-sharding` library to monitor the health of the clusters and provide a way to recluster the application when needed.
    2. Adding a new `recluster` command that allows staff members to manually trigger a recluster of the application.
    3. Modifying the `interactionCreate` event to check if the bot is in maintenance mode and reply with a message if so.
    4. Removing the `respawn` command, as the recluster functionality can now be used to achieve the same result.
    
    These changes are aimed at improving the reliability and maintainability of the application, ensuring that it can continue to run smoothly even in the face of unexpected issues or changes.
    dev-737 committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    01a81fa View commit details
    Browse the repository at this point in the history
  2. refactor(api): simplify vote webhook handling

    This change adds a middleware function to the API that handles incoming
    top.gg webhook requests. The middleware verifies the request
    authorization header, checks the validity of the payload, and then
    processes the vote event. This includes incrementing the user's vote
    count, adding the voter role, and announcing the vote in the support
    server.
    
    The changes also remove the previously used `VoteManager` class, as its
    functionality has been consolidated into the new middleware.
    dev-737 committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    1a94d9b View commit details
    Browse the repository at this point in the history