





































A Discord bot for the 2026 OPPO Hyper Legend Cup x MLBB Campus Series. It checks players against the team registration sheet, runs the support desk, schedules announcements and records match results.

The 2026 OPPO Hyper Legend Cup x MLBB Campus Series is a university Mobile Legends: Bang Bang tournament that OPPO ran across Malaysia, Indonesia, Singapore and the Philippines. The OPPO event page lists registration from 16 to 28 February, online qualifiers on 7 and 14 March, and a cross-national final in Kuala Lumpur in April. The Philippine side of it lived in a Discord server, and that server needed to tell real registered players from everyone else, answer questions from teams, and keep match results straight on the days that mattered.
I built the bot for that server, as the Tournament Director as well. The code is in a public repository, and showcases the most-evolved form of my tournament bot development from the MSL Collegiate Cup bots, ISFE, and this.
Most of the bot's skeleton went in on the first day. The initial commit already had seven cogs, 16 slash commands and a MySQL database started through Docker Compose. The same day added a GitHub Action that restarts the bot server on every push to main, and a check of player details against a Google Sheet.
That check is the core of verification. A player clicks Verify, reads a guide image showing where to find their UID and server ID in the game, and fills in both numbers in a form. The bot looks the pair up in the registration sheet, which it reads as a CSV export of a view-only Google Sheet and caches for five minutes. On a match it assigns the player's role, renames them to team abbreviation and in-game name, stores the record and sends a confirmation DM. A command drops the cache and refetches when the sheet changes.
The sheet parser only reads player rows, so coaches and managers got their own button on 5 March. They pick Coach or Manager, enter a staff code, and give a team name that has to exist in the sheet. The bot allows one coach and one manager per team. League Ops staff who weren't in the sheet at all are handled by a manual entry list that the verification form falls back to.

Four systems ran the event. Each animation below is one of them, drawn from what the code does.
Verification checks a player's UID and server ID against a cached copy of the team sheet, which expires after five minutes. A match writes one row to MySQL, grants the role that the sheet entry maps to, and sets the nickname to the team abbreviation and the in-game name. Staff use a shared access code instead, and the bot allows one coach and one manager per team.
Tickets open as private channels for the member and staff roles. The bot pings the category role at 24 hours and escalates at 48 hours, pinging League Ops as well. Closing writes an HTML transcript to the log channel and DMs it to the creator, who is then asked to rate the service from one to five stars.
A marshal logs each game with /game_result, and the bot waits for the two teams to type I acknowledge. After five minutes the bot fills any missing acknowledgement itself. A dispute freezes that clock, and the paused seconds are stored per game. Match state is kept in the database.
Embeds take a Discohook link, read the first message in it, and post its content, embeds and buttons to a channel. A post can also be scheduled. Scheduled posts are stored in MySQL in Manila time, and each one gets its own timer.
Separate commands create up to 50 private threads at once, with retry on rate limits, and post a role mention into every thread of a channel. A trigger voice channel spawns a personal channel for whoever joins and deletes it when it empties. Challonge links a bracket to a channel, lists its matches and reports a result through a guided flow of prompts. Three log channels record command use, tickets and embeds, and a help command shows only the commands the person asking is allowed to run.
Match tools arrived last. Sessions and Challonge went in on 28 February, and most of the rest followed between 4 and 7 March. A marshal can also start a 15 minute grace period before a game.