Polar Scrims: System and Discord bot

System and Discord bot

Polar Scrims

A Discord bot and web platform that runs tournaments, syncs in-game results in seconds, takes payments with Stripe and pays out winnings.

The challenge

Polar Scrims runs tournaments for players on Discord. Sign-ups, teams, results and payouts were handled in spreadsheets and chats, which did not hold up as the player count grew.

What we did

A Discord bot in discord.js handles sign-ups, roles and teams right in the server. Results are fetched from the game through Yunite and synced to a Postgres database in Supabase in about five seconds, so the tables are always right.

An Express API ties the bot, the website and the database together. Payments go through Stripe and winnings are paid out as credits to PayPal or IBAN.

The bot and API run on Railway, the website on Vercel. Everything is built to run around the clock without anyone watching.

The result

Tournaments that used to take manual work now run on their own, from sign-up to payout.