/bracket-role-assign

Assigns roles to Discord server members based on tournament registration

Primary LanguageJavaScriptMIT LicenseMIT

bracket-role-assign

For those running onilne tournaments, this is a script that assigns roles to Discord server members based on (smashgg, for now) tournament registration. It will also give nicknames to server members if their Discord usernames don't match their smashgg gamertags.

What you'll need:

Getting Started

  1. Create a credentials.json file with these tokens. Use credentials.example.json as a reference.

  2. Create a config.json file that contains your Discord server ID, and a mapping from Discord role ID to either smash.gg game ID or the game name. Use config.example.json as a reference.

  3. npm ci

  4. npm start -- [smashgg tournament slug]