Implement Houses System for UETS Computer Science Specialty #5
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.
Implements complete Houses System (Sistema de Casas) per CasasSystem.md - a gamified organizational structure with 4 houses, monthly rankings, house currency (fragmentos), mentorship program, and achievement tracking.
Database Schema
10 new tables:
houses- house metadata (name, color, emoji, points)house_members- membership with roles (member/event_organizer/leader)fragmentos- house currency (converts 10:1 to coins)house_points- monthly point accumulation per user/househouse_achievements- 8 badge types (event_participation, mentor, honor_seal, etc.)house_alliances,house_events,house_event_participants- inter-house collaborationmentors,mentorship_sessions- mentorship program (2nd/3rd year students only)house_history- complete audit log ("El Libro de las Casas")Schema:
database/houses_schema.sqlService Layer
services/houses.js- full CRUD operations for all house entities with proper error handlingCommands (14 new)
House Management:
Fragmentos:
Mentorship:
Achievements:
Permission Model
Validation enforced in command execute() - checks
PermissionFlagsBits.Administratorand user's house role.Event Handlers
Updated
events/interactionCreate.jsto supportStringSelectMenuinteractions. Addedinteractions/selectMenus/houseSelectJoin.jsfor house selection flow.Example Usage
Notes
month/yearcolumns - no auto-reset implemented (scheduled job TBD)commands/fragmentos/convert.jsDocumentation: HOUSES_SETUP.md (setup guide), HOUSES_QUICK_GUIDE.md (user reference)
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.