
Copa City Discord Ecosystem
Triple Espresso faced a critical mission: how to reward the most loyal fans of Copa City without compromising the brand’s digital integrity? They required an architect to transform a simple loyalty concept into a fail-safe, global operation. They sought a solution that would bridge the Steam and Discord ecosystems with surgical precision.
The Predicament
The task appeared routine: engineer a Discord bot to verify Steam wishlists and distribute DLC keys. However, the reality beneath the surface was far more volatile. The inherited, "vibe-coded" Python structure was not only unstable but dangerous—thousands of activation keys sat in a fragile text file, vulnerable to any breach. The challenge was to build trust where the standard Steam API resisted and where legacy infrastructure had already failed.
The Orchestration
I performed a surgical migration of the entire ecosystem. I discarded the unoptimized scripts in favor of a modern Node.js and Discord.js architecture, ending the era of amateur workarounds. I designed a sophisticated infrastructure bridge: a secure tunnel connecting the bot and a PostgreSQL database on Railway to the game’s primary web platform on Vercel (Next.js).
To grant absolute control to the Triple Espresso team, I integrated the bot’s logic with Storyblok. This allows every message and Steam API status update to be edited via the CMS without touching the source code. I moved sensitive key data from plain text into an encrypted database vault, building a system resilient to attacks and ready for mass-scale distribution.
The Outcome
Architectural Supremacy: A transition from an aging OVH VPS to a high-velocity Railway-Vercel network, eliminating downtime.
Surgical Security: Total eradication of security vulnerabilities through the implementation of a relational database and protected DLC distribution logic.
Narrative Autonomy: Full control over bot communication via Storyblok, allowing for instantaneous marketing pivots.
Process Fluidity: A fully autonomous verification system that converts wishlists into real engagement without consuming human resources.