Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/VasquezRivero92/Discord_Faceit/llms.txt

Use this file to discover all available pages before exploring further.

The Mixton system lets captains draft teams from a pool of ready players via the Mixton Arena web panel. Two complementary slash commands manage your presence in that pool:
  • /mixton_listo — adds you to the pool and announces your availability in the channel.
  • /mixton_no_listo — removes you from the pool and announces your departure.
Both commands require a linked Faceit account and emit an immediate event via mixtonEvents so the Mixton Arena web panel updates in real time — no polling needed.

/mixton_listo

Syntax

/mixton_listo
No parameters.

Feature Flag

Guarded by command_mixton_listo scoped to the guild. When disabled, the bot returns an ephemeral ❌ Este comando está desactivado por el administrador. Defaults to true if the flag is missing from Firestore.

Prerequisites

You must have already linked your Faceit account using /verificar_fc. The command calls db.getFaceitIdByDiscordId(discordId, guildId) — if no link is found, it returns an ephemeral error and does not add you to the pool.

Behavior

  1. Feature flag check — early exit if disabled.
  2. Link verification — reads faceit_player_id from Firestore. Aborts if missing.
  3. Ready state update — calls db.setPlayerReadyStatus(discordId, true, guildId) to mark the player as available.
  4. WebSocket push — calls mixtonEvents.emit('update', guildId), which triggers a broadcast to all web-panel clients subscribed to that guild. The captain draft pool updates immediately.
  5. Audit log — writes an info log entry.

Response

The bot sends a public embed (visible to the whole channel):
🎮 ¡Listo para el Mixton!
Hola @User, te has marcado como Disponible para competir.

Ya apareces en la lista de la web y los capitanes podrán elegirte para sus equipos.
Si deseas salir, usa /mixton_no_listo.
Embed color: Green (0x15C253).

/mixton_no_listo

Syntax

/mixton_no_listo
No parameters.

Feature Flag

Guarded by command_mixton_no_listo scoped to the guild. Defaults to true if the flag is missing from Firestore.

Prerequisites

Same as /mixton_listo — requires a linked Faceit account. The command calls db.getFaceitIdByDiscordId(discordId, guildId) and aborts with an ephemeral error if no link is found.

Behavior

  1. Feature flag check — early exit if disabled.
  2. Link verification — reads faceit_player_id. Aborts if no link found.
  3. Ready state update — calls db.setPlayerReadyStatus(discordId, false, guildId) to mark the player as unavailable.
  4. WebSocket push — calls mixtonEvents.emit('update', guildId) to broadcast the updated pool to all connected web-panel clients.
  5. Audit log — writes an info log entry.

Response

The bot sends a public embed:
🎮 ¡Fuera del Mixton!
Hola @User, te has marcado como No Disponible.

Ya no aparecerás en la lista de la web y no podrás ser elegido.
Usa /mixton_listo si quieres volver a estar disponible.
Embed color: Red (0xFF3E3E).

Real-Time Web Panel Integration

Both commands call mixtonEvents.emit('update', guildId) imported from routes/lobby.js. This fires an event that the Mixton Arena web panel consumes to re-render the available player pool instantly — no page refresh required. Captains performing a draft see the pool update within milliseconds of a player running either command.
The ready pool is per-guild. If the same Discord user is a member of multiple servers that share the same bot instance, they must run /mixton_listo independently in each server where they want to appear.

Error Reference

ConditionError message
command_mixton_listo / command_mixton_no_listo flag is false❌ Este comando está desactivado por el administrador. (ephemeral)
No linked Faceit account (/mixton_listo)❌ No estás verificado. Debes vincular tu cuenta de Faceit usando el comando /verificar_fc <nickname> antes de unirte al mixton. (ephemeral)
No linked Faceit account (/mixton_no_listo)❌ No estás verificado. Este comando es solo para miembros registrados. (ephemeral)
Unexpected DB error❌ Ocurrió un error al intentar cambiar tu estado: <details> (ephemeral)
Toggle your status freely between /mixton_listo and /mixton_no_listo as many times as needed before a draft starts. Only your most recent status matters when captains begin picking.

Build docs developers (and LLMs) love