csgo-league-web icon indicating copy to clipboard operation
csgo-league-web copied to clipboard

DatHost Support

Open Shaneajm opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. Some people don't run enough matches at the moment to warrant spending ~$10 on a single server to run for matches. Also adds the flexibility for those with many matches to have servers created without the need for players to wait for a server to open.

Describe the solution you'd like Implement DatHost API to automatically control and update servers based on the queue and current running matches.

Obviously we could add more features as their API has a lot of options but I think the ability to start and stop servers based on the server id in the .ENV would be a good start. That way people could create like 3 servers in Dathost and have them automatically allocate for matches. We would need to include the server ID in the matches table to link ongoing matches to the specific server.

Additional context This might be a feature that's useful so credit usage doesn't get out of hand:

  • Periodically check credit usage using the account details endpoint and have the discord bot send a webhook and/or message notifying admins in a specific channel if credits get low.

API Documentation for DatHost: https://dathost.net/api

Shaneajm avatar Nov 14 '20 22:11 Shaneajm