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: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.
/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.
mixtonEvents so the Mixton Arena web panel updates in real time — no polling needed.
/mixton_listo
Syntax
Feature Flag
Guarded bycommand_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
- Feature flag check — early exit if disabled.
- Link verification — reads
faceit_player_idfrom Firestore. Aborts if missing. - Ready state update — calls
db.setPlayerReadyStatus(discordId, true, guildId)to mark the player as available. - 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. - Audit log — writes an
infolog entry.
Response
The bot sends a public embed (visible to the whole channel):0x15C253).
/mixton_no_listo
Syntax
Feature Flag
Guarded bycommand_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
- Feature flag check — early exit if disabled.
- Link verification — reads
faceit_player_id. Aborts if no link found. - Ready state update — calls
db.setPlayerReadyStatus(discordId, false, guildId)to mark the player as unavailable. - WebSocket push — calls
mixtonEvents.emit('update', guildId)to broadcast the updated pool to all connected web-panel clients. - Audit log — writes an
infolog entry.
Response
The bot sends a public embed:0xFF3E3E).
Real-Time Web Panel Integration
Both commands callmixtonEvents.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
| Condition | Error 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) |