Commit Graph
10 Commits
Author SHA1 Message Date
asepharyana f9a35ee230 Fix booster role metadata updates 2026-07-09 01:29:56 +07:00
MythEclipse 0f6d9110a3 test: add boost cleanup service tests and expand booster role test coverage 2026-06-06 03:11:59 +07:00
MythEclipse a796034241 fix(discord): migrate deprecated Zod error.errors to error.issues and add CI quality gates 2026-06-06 03:08:38 +07:00
MythEclipse 57699d60a8 feat(services): implement periodic booster role cleanup
Add a new `boostCleanupService` to periodically scan guilds and remove
custom booster roles and database records for members who are no longer
eligible (e.g., lost boost status or left the server). This ensures
data consistency even if the bot was offline during status changes.

- Implement `startBoostCleanup` with configurable intervals
- Add `findByGuild` to `BoosterRoleStore` for batch processing
- Update `DrizzleBoosterRoleStore` to support guild-based lookups
- Add configuration for `boostCleanupIntervalMs`
2026-06-06 02:46:38 +07:00
MythEclipse bf03af53af feat: add color2 gradient color support and defer interactions for slow commands 2026-06-06 00:48:41 +07:00
MythEclipse c155c94ea2 feat: enhance booster role functionality with error handling and database migration 2026-05-21 15:44:17 +07:00
MythEclipse 41c6b567a6 feat: enhance role handling by updating reply structure and adding role assignment functionality 2026-05-16 00:32:29 +07:00
MythEclipse acd4648d49 feat: update booster role eligibility logic and refactor related services 2026-05-16 00:06:13 +07:00
MythEclipse 9d0322b118 feat: add optional role icon support and validation for booster roles 2026-05-15 23:23:16 +07:00
MythEclipse c6b1087eb3 feat: initialize booster role bot with database and Discord integration
- Add drizzle configuration for SQLite database
- Create package.json with necessary dependencies and scripts
- Implement configuration loading for Discord bot
- Define permissions for roles
- Set up database schema for booster roles
- Create Discord client and commands for managing booster roles
- Handle guild member updates to manage roles based on boost status
- Implement boost eligibility checks and role management logic
- Add tests for boost eligibility and role guards
- Create service for managing booster roles with in-memory storage for testing
- Configure TypeScript settings for the project
2026-05-15 23:03:35 +07:00