jinteki.win / cobra-bot

Cobra Bot

A Discord bot that shows pairings, standings, the top cut and players of Cobra Netrunner tournaments, right in your channel.

Add to Discord

Commands

<tournament> is a Cobra tournament number (4909), its shortcode (QNSF) or a link to any of its pages, e.g. https://tournaments.nullsignal.games/tournaments/4909/players/standings.

/cobra standings <tournament>
Swiss standings: rank, player, Corp and Runner ID, points and Strength of Schedule, and after which round they apply. Once Swiss is over it also says whether there is a top cut and how far it has got.
/cobra pairings <tournament> [round]
Pairings of the latest round, Swiss or top cut, or of the round you give: whether it is complete or in progress, tables, players, sides, IDs and results. A top cut round shows game numbers and who won.
/cobra top-cut <tournament>
The top cut ranking: place, player, IDs, games won and lost in the cut, and seed.
/cobra bracket <tournament>
The top cut bracket as one picture, laid out like the bracket page on Cobra.
/cobra player <tournament> <names>
Players whose name contains the text, with their standing and their game in the latest round. List up to 10 names separated by commas (Alice, Bob) to follow a group; letter case and accents don't matter.

Replies are posted in the channel for everyone to see. Tables are pictures, so they look the same on desktop and phones; long lists are split into up to 5 pictures, with a link to the full page on Cobra after that. Data is at most a minute old. If Cobra is down or the tournament has been made private, the bot shows the last data it fetched and says when.

Example

Standings posted by the bot: a table of 40 players with rank, name, Corp ID, Runner ID, points and SoS.
/cobra standings in a Discord channel.

Install

Open the invite link and choose:

  • Add to server: the commands work for everyone in that server. Needs the Manage Server permission there.
  • Add to my apps: the commands work for you in any server, DM or group DM.

The bot needs no permissions: it only answers its own commands.