perrycate / automatic-to Goto Github PK
View Code? Open in Web Editor NEWA bot to facilitate running tournaments entirely via discord
License: GNU General Public License v3.0
A bot to facilitate running tournaments entirely via discord
License: GNU General Public License v3.0
Should probably learn how to actually use them lol.
When the command is run to open registration, we need to know the ID of the message people are reacting to in order to register people. If the bot crashes or is otherwise turned off before the tournament starts, it has no way of recovering. Things like that message ID should be written somewhere. Maybe a SQLite DB, or if we're lazy we could just pickle it I guess.
I believe the working idea is to @ the bot and the opponent with the score, and then to confirm it by having both players react to that message.
Can include a prompt to run !set-challonge-username, and maybe a "remove me" command once that's added.
After each command run or any new events ("called X match", "DQ'd Y player", etc.) we should write to some log that can be looked at later.
Basically explaining what the commands are, an example tournament scenario, etc. Screenshots would be A+.
When calling a match with a station set (or setting the station for a match already in progress?), we can mention the players to inform them.
We can delete the tournament name optional param (since that can be changed in challonge after the fact) and replace it with this. If unspecified it can add everyone that reacted.
To avoid confusion we should support custom emojis from the get-go with this.
Need some sort of access control, maybe only accept it from the person that ran !begin?
Lets us add players after !begin and still have the discord-challonge association.
Currently if an exception is raised it just permanently kills that coroutine.
Sanity checks are better than nothing, but some unit tests or similar would be nice.
Some of the constants at the top are more likely to be changed by TOs than others. Might as well make it a separate config file.
Right now we set an arbitrary 10-second limit for how often we check challonge for any tournament. If we created a large number of tournaments though, we in theory could be rate-limited. Enforce some sort of intelligent global limits.
That way, players only need to click it instead of hunting for it in their emoji list.
ie a TO manually adds via challonge instead of !add, so there's a challonge user without an accompanying discord id.
I started to do this in 8eeae09, but it's not done and needs work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.