Nova Coder
874618c328
Fix: voting flow bugs na code review
...
- acceptingMatch/finalizingMatches als const gedeclareerd (ipv implicit global)
- 30-min voting timeout met cleanup interval
- _created timestamp bij acceptingMatch init
- finalizingMatches semaphore tegen race conditions
- try/catch + logError in finalizeMatch()
- Speler check in vote callbacks (m.players.includes)
- finalizingMatches.delete bij cleanup na finalize
2026-05-25 18:46:13 +00:00
Nova Coder
4f700368e3
chore: remove temporary new_section.txt from git
2026-05-25 13:03:48 +00:00
Nova Coder
7733e6573b
cleanup: remove deprecated match_ranked_ handler and buttons (replaced by vote flow)
2026-05-25 11:19:50 +00:00
Nova Coder
bc9ef8b3dc
Vote flow: ranked/friendly na confirmatie, majority decides
2026-05-25 10:47:11 +00:00
Nova Coder
22e77bcc80
feat: ranked/friendly match types + DM buttons voor alle flows
...
- match_type veld (friendly/ranked) via /matches POST + /type endpoint
- 🟢 Friendly default bij match creatie
- 🏆 Ranked callback: match_ranked_ zet type, update bericht, DM naar alle spelers
- DM buttons: alle 4 knoppen (✅ ❌ 🔄 🏆 ) beschikbaar in DM voor snelle actie
- Reminder: alleen voor ranked matches
- Score stats: alleen bij ranked matches (wins/games)
2026-05-25 09:42:33 +00:00
Nova Coder
a88d931aab
feat: team indeling in matchmaking + team_swap callback
2026-05-25 08:33:45 +00:00
Nova Coder
208fbe08a5
fix: correct win/loss stats in /mijn
...
- Filter alleen completed matches (confirmed = nog niet gespeeld)
- Win obv team1 (winnend team) / team2 (verliezend team)
- Draw ondersteuning (gelijke sets, 1-1)
- Geen afhankelijkheid van score.winner veld (bestaat niet in API)
2026-05-25 08:00:32 +00:00
Nova Coder
91c5403fcb
fix: add /mijn to bot command menu
2026-05-25 07:52:40 +00:00
Nova Coder
e631389fff
feat: /mijn command — DM-only stats/PIN
...
Voegt /mijn command toe dat in DM:
- Player stats toont (matches gewonnen/verloren)
- Totale uren toont
- PIN, niveau, positie toont
- Link naar profielpagina
/beschikbaar blijft redirect naar web.
2026-05-25 07:34:26 +00:00
Nova Coder
75912faae1
Initial commit: bot.js v24/05/2026
...
- Telegram bot met beschikbaarheid, scores, matching
- Peakz scraper voor Atoomweg/Euroborg/Suikerterrein
- SQLite backend via API
2026-05-24 20:39:43 +00:00