csgo-league/csgo-league-bot

Add to Discord bot some command like q!ban @user #time

39ma opened this issue · 3 comments

39ma commented

After ban feature will go to release: link
it would be good if you could add to Discord bot some command like q!ban @user #time

https://github.com/csgo-league/csgo-league-web/blob/develop/app/Router.php#L59
https://github.com/csgo-league/csgo-league-web/blob/develop/app/Router.php#L60

Here's the endpoints you can use, you'll also need to add a check when people join the queue if you don't already have one :)

Is there an endpoint where I can check if a user is banned? Does "banning" make it so they can't join League servers? If I am able to check if they are banned then I can prevent them from joining the queue and wasting everyone's time when it pops and the banned user cannot join the server.