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

Dev PR 3 #3

Merged
merged 25 commits into from
Jun 24, 2023
Merged

Dev PR 3 #3

merged 25 commits into from
Jun 24, 2023

Conversation

Arcoz0308
Copy link
Collaborator

No description provided.

Arcoz0308 added 25 commits June 21, 2023 23:09
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`.
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
@Arcoz0308 Arcoz0308 merged commit 586df34 into master Jun 24, 2023
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