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

Conversation

dev-737
Copy link
Member

@dev-737 dev-737 commented Oct 11, 2024

No description provided.

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.
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.
Copy link

sentry-io bot commented Oct 11, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: src/utils/Utils.ts

Function Unhandled Issue
getUsername [**Error: CLUSTERING_NO_CHILD_EXISTS

Did you find this useful? React with a 👍 or 👎

Copy link

sonarcloud bot commented Oct 11, 2024

@dev-737 dev-737 merged commit 5b6004b into main Oct 11, 2024
5 checks passed
@dev-737 dev-737 deleted the Virtual-branch-1 branch October 11, 2024 05:35
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