A Discord bot to handle League of Legends in-house games, with role queue, matchmaking, and rankings.
This is a fork of inhouse_bot. The original project is no longer maintained, so I'm using this repo to develop new features.
{token of discord bot}
{riot api key}
{postgres password}
docker compose build
docker compose up -d
!admin mark queue
Potential Drawbacks To This Algorithm:
# Enter the channel’s matchmaking queue
!queue mid
>>> 🇲
# Accept games by reacting to the ready check message
>>> ✅✅✅✅✅✅✅✅✅✅✅
>>> Game 1 has started
# Games can be scored with !won
!won
>>> ✅✅✅✅✅✅✅
>>> Game 1 has been scored as a win for blue and ratings have been updated
# Champion played can be added with !champion
!champion riven
>>> Champion for game 1 set to Riven for Tolki
!queue role
puts you in the current channel’s queue for the given role
!queue role @user other_role
duo queues you together with the tagged player in the current channel
!leave
removes you from the channel’s queue for all roles
!won
scores your last game as a win for your team and waits for validation from at least 6 players from the game
!champion champion_name [game_id]
informs which champion you used for winrate tracking
game_id
, it will apply to your last game!cancel
cancels your ongoing game, requiring validation from at least 6 players in the game
!admin mark
marks a text channel as a Queue or Ranking channel
!admin reset @user
removes the user from all queues (his name or discord ID work too)
!admin reset #channel
resets the queue in the given channel (or the current channel with !admin reset
)
!admin won @user
scores the game as a win for the user without asking for validation
!admin cancel @user
cancels the ongoing game of the specified user