Skip to content

feat(tickets): sistema de tickets con hilos privados#61

Open
Chere3 wants to merge 2 commits into
somospye:mainfrom
Chere3:feat/tickets
Open

feat(tickets): sistema de tickets con hilos privados#61
Chere3 wants to merge 2 commits into
somospye:mainfrom
Chere3:feat/tickets

Conversation

@Chere3

@Chere3 Chere3 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Qué hace

Sistema de tickets MVP:

  • /ticket setup (admin): publica el panel con botón "🎫 Crear ticket" en el canal actual.
  • Botón → modal (asunto + descripción opcional) → se crea un hilo privado ticket-<usuario> en el canal del panel, con mención al usuario y al rol de moderación (allowed_mentions explícito, porque el cliente global usa parse: []).
  • /ticket close [motivo] (dueño del ticket o staff, dentro del hilo): marca el ticket cerrado en DB, manda embed de cierre y bloquea + archiva el hilo.
  • Regla de 1 ticket abierto por usuario (con link al existente si intenta abrir otro).

Cómo

  • Tabla tickets (usuario, hilo, asunto, estado, fechas, quién cerró) + repository + service; el resto sigue el layering del repo.
  • Los tickets cerrados se archivan, no se borran: queda el historial y el usuario puede abrir uno nuevo.

Deploy

  • Tabla nueva: bun run db:push (drizzle/ gitignoreado).
  • El panel debe publicarse en un canal de texto donde el bot tenga Create Private Threads / Manage Threads.

Closes #18

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.

Sistema de tickets

1 participant