Skip to content

CV2: refactor component variable names and improve blacklist logic#21

Merged
BenHall-1 merged 1 commit intoTicketsBot-cloud:cv2from
biast12:cv2-improvements
Jul 4, 2025
Merged

CV2: refactor component variable names and improve blacklist logic#21
BenHall-1 merged 1 commit intoTicketsBot-cloud:cv2from
biast12:cv2-improvements

Conversation

@biast12
Copy link
Copy Markdown
Contributor

@biast12 biast12 commented Jun 29, 2025

This pull request refactors multiple command and handler functions across the codebase to improve consistency and readability by standardizing the naming of component variables and extracting shared logic into reusable methods. The most notable changes include renaming comps and values variables to innerComponents, modularizing the BlacklistCommand logic into separate methods, and improving the handling of ticket-related messages.

Updated locale strings: TicketsBot-cloud/locale#49

Renames local variables for component slices to 'innerComponents' across multiple files for clarity and consistency. Refactors the blacklist command to separate user and role blacklist logic into dedicated handler functions, unifies response formatting, and fixes role blacklist count checks. Updates help and welcome message logic to use new container utilities. Adds a new i18n message for tickets started from messages with no content and improves the premium footer link formatting.
@biast12 biast12 changed the title Refactor component variable names and improve blacklist logic CV2: refactor component variable names and improve blacklist logic Jun 29, 2025
@BenHall-1 BenHall-1 merged commit 7d66d3a into TicketsBot-cloud:cv2 Jul 4, 2025
@biast12 biast12 deleted the cv2-improvements branch July 4, 2025 20:25
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.

2 participants