-
Notifications
You must be signed in to change notification settings - Fork 0
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
Dev PR 3 #3
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit adds a new 'global' option to the 'top 3' command in the 'commands.config.ts' file. The option defaults to false and allows users to display a global ranking instead of a server ranking. The command now also has separate titles for server and global rankings.
Update the IDs for the top-level buttons in button.const.ts to use a new prefix and add a new set of IDs for detailed top-level buttons.
Added buttons for pagination to xp-page generator and updated type definitions to reflect changes. Now the generatePage function returns an object with an array of embeds and an array of action row components with button builders. Also, PageTypes enum values are now string literals.
The button_error class has been updated to include the source error message when it is provided. This was achieved by modifying the constructor to append the source error message to the original error message, separated by a comma. This change improves the debug information available in case of errors.
This commit removes the unused type `GeneratePage` from `page.ts`. The function signature for `generatePage` has been updated accordingly to remove the unnecessary type. Additionally, the unused types `GenerateGuildPage` and `GenerateGlobalPage` have been removed from `page.type.ts`.
Added two new button handlers for the top level page: `topLevelPage` and `topLevelDetailed`. These handlers update the message when the buttons are clicked, displaying either the global or guild XP leaderboard depending on the button clicked and the current page. Implemented in `top_level.util.ts` and `top_level.button.ts`.
…g NaN if member lvl 0)
Also added a new type `PositionAndXp` to `xp.type.ts` to represent the position and xp of a player.
Add a new task class for clearing cache that extends the Task abstract class. The task clears cooldown and logs a message when it runs. The task is enabled in the development environment and runs on an interval of 6 hours.
Fix not good message for good object
Add a new `checkBump` function in the `MessageCreate` class to check for bumps in guilds. If the message is from the bump bot and is in the bump channel, it fetches the interaction and checks if it is the bump command. If it is, it creates a new bump in the database and sends a reply with the bump count and XP earned. It also adds XP to the user if the bump count is less than the max bumps set in the global config.
This commit adds DirectMessages, GuildMembers, and GuildVoiceStates flags to the list of IntentsBitField.Flags in the client initialization. This expands the scope of intents that the client can listen to.
Added a new field 'bumpChannel' to the guild configs to specify the channel where the bump messages will be sent. This improves the bump feature functionality and allows for more customization. Changes made to: - src/config/guilds/_dev/dev.config.ts - src/config/global/global.config.ts - src/config/guilds/brawlstars.config.ts - src/config/guilds/global_guild.config.ts - src/config/guilds/guild.type.ts - src/config/message/event/message_create.config.ts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.