Skip to content

Bot that blasts pairings from Tabroom to a Discord server.

License

Notifications You must be signed in to change notification settings

Golf0ned/pairings-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 ███████████             ███             ███                             
░░███░░░░░███           ░░░             ░░░                              
 ░███    ░███  ██████   ████  ████████  ████  ████████    ███████  █████ 
 ░██████████  ░░░░░███ ░░███ ░░███░░███░░███ ░░███░░███  ███░░███ ███░░  
 ░███░░░░░░    ███████  ░███  ░███ ░░░  ░███  ░███ ░███ ░███ ░███░░█████ 
 ░███         ███░░███  ░███  ░███      ░███  ░███ ░███ ░███ ░███ ░░░░███
 █████       ░░████████ █████ █████     █████ ████ █████░░███████ ██████ 
░░░░░         ░░░░░░░░ ░░░░░ ░░░░░     ░░░░░ ░░░░ ░░░░░  ░░░░░███░░░░░░  
             ███████████            █████                ███ ░███        
            ░░███░░░░░███          ░░███                ░░██████         
             ░███    ░███  ██████  ███████               ░░░░░░          
             ░██████████  ███░░███░░░███░                                
             ░███░░░░░███░███ ░███  ░███                                 
             ░███    ░███░███ ░███  ░███ ███                             
             ███████████ ░░██████   ░░█████                              
            ░░░░░░░░░░░   ░░░░░░     ░░░░░                               

discord bot to post tabroom pairings

Ever forget to check tabroom and end up late to a round because it didn't send a notification? Tired of constantly refreshing Tabroom the minute pairings are supposed to be released and straining your fingers?

Enter PairingsBot---a Discord bot that blasts Tabroom pairings to your server. Stress less about pairings, and more about the round ahead of you.

Features & Commands

Help

/help

Displays all commands.

image

Configure Blasts

/configureblasts <school> <channel>

Sets the school to filter pairings by and the channel that blasts should be sent to.

image

school: school name, as displayed on Tabroom.

channel: Discord channel blasts will be sent to.

Configure Tournament

/configuretournament <tournament-id> <event-id>

Sets the tournament and event pairings will be pulled from.

image

tournament-id: Tabroom's tournament id, as shown below.

event-id: Tabroom's event id in the URL, as shown below.

image

Display Config

/displayconfig

Displays all configured settings. If a specific section isn't configured, tells which section isn't configured.

image

Start Blasts

/startblasts

Starts tournament blasts. Checks every 8 seconds.

image

A blast contains all teams of the configured school and their sides, opponents, judge(s), and room.

image

Stop Blasts

/stopblasts

Stops tournament blasts.

image

Pairings

/pairings <optional team-code>

Post the pairings from the most recent round for for a specific team/partnership.

team-code: initials of the team code, as shown in screenshot (optional)

If team-code is left empty, posts pairings for all teams/partnerships under the configured school.

image

Refer to /startblasts for more info on blasts.

Getting Started/Setup

I'm not looking for this bot to get formal Discord verification. If enough people use it and I get an angry email from Palmer, I'll rewrite it to be public.

For those who are interested in using this bot for their own teams, download the most recent package on the repo, update the .env file, and host through whichever service you fancy.

I personally used Railway via GitHub repo. Here's a template link (note the referral code---feel free to remove): https://railway.app/template/JabnMS?referralCode=gV3U7a

[UPDATE 1/5/24] I had trouble installing the dependencies for discord.py on Python 3.12. You should use Python 3.11...for the time being[sic]. The template is updated to reflect this.