This repository contains the source code of the bot used in CTR Competive Switch discord server.
A discord bot which helps in the discord server with the organization of rankeds for the game Crash Team Racing. It has some features like:
- Set the time of a match in different timezones.
- Set your player name.
- Set your country flag.
Also it is possible to create differents kind of libbies like ffa, duos, 3vs3, 4vs4 and itemless.
A part of helping with the organization, it has some interesting commands or utilities:
- The bot will give the welcome to the new members.
- The bot has a list of jokes in different languages
To make this bot run you will need:
- Config the mongoDB, create a new data base and change the url connection to yours .
- Insert in the mongoDB ParametersSchema collection the documment with fields "name" = your login token bot value and "description" = "loginToken"
- Install nodejs
To create a new lobby it is possible to do with the command !l or !lobby
When the bot tells you the lobby is already created you can search it in the channel rankeds-lobbies and if you react to the green check box the bot will automatically add you to the message.
Max players per lobby are 8 but depending on the kind of lobby it could be 6
Also duos lobbies, 3vs3 and 4vs4 are aviable
When the ranked starts, the bot will also generate a template for the scores and a link to open it with the data players leaded.
When the ranked match is over, to register the scores just copy and paste the template scores with the final points in the channel results-register and the bot will process it and save it.
With the command !help the bot will send you the manual of all the commands and a few examples of how to use all of them. There are 20 commands in total.