This is a Discord Bot using Node.js & Discord.js (11.6.4)
In-house: An invite-only colletive of people
PUG (Pick Up Game): A game with teams that are assigned randomly to the people that are present
MMR (Match Making Rating): A rating each player has that is one of the main factors the bot uses to balance teams
-
"data" Folder containing 2 files
- lobbies.json
- File that contains a list of all game lobbies
- Potentially changed/removed in the future
- players.json
- File that contains a list of all registered players
- lobbies.json
-
token.json
- File that contains the unique discord token that needs to be private (it's like a stream key)
An explaination of how each of the elements of the bot works.
Each command must be proceeded by the discord bot's prefix
Usability: Everyone
Description: Displays player information of the user mentioned in the message. If no user is mentioned the player information of the author of the message is displayed.
Usability: Everyone
Description: Replies "pong" to the author.
Usability: Everyone
Description: Registers the author of the message as a player if they aren't already. Then assigns their player name to the argument (works even if the author is already registered).
Usability: Registered
Description: If the text channel is a lobby and the player is not already in the queue, the player will be inserted into the queue. If the player is the 10th player to join the queue, a game will be created. This command also removes the previous 4 messages in the channel (including the author's message).
Usability: Registered
Description: If the text channel is a lobby and the player is already in the queue, then the player will be removed from the queue. This command also removes the previous 4 messages in the channel (including the author's message).
Usability: Registered
Description: If the author is a registered player and the role argument is valid (top, jungle, mid, bot, support, or fill), then the player's primary role will be assigned to the role argument.
Usability: Registered
Description: If the author is a registered player and the role argument is valid (top, jungle, mid, bot, support, or fill), the the player's secondary role will be assigned to the role argument.
Usability: Registered
Description: If the author is a registered player and the role argument is valid (top, jungle, mid, bot, support, or none), then the player's never get role will be assigned to the role argument.
Usability: Moderator/Administrator
Description: If the game is valid and has not been decided yet, the game's outcome will be recorded and MMR points will be awarded accordingly and will notify each user's change in MMR points.
Usability: Administrator
Description: Creates 10 randomized players and then creates a game with those 10 players (used to test some features of the bot).