Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatHost Support #69

Open
Shaneajm opened this issue Nov 14, 2020 · 1 comment
Open

DatHost Support #69

Shaneajm opened this issue Nov 14, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Shaneajm
Copy link
Member

Shaneajm commented Nov 14, 2020

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 Shaneajm added the enhancement New feature or request label Nov 14, 2020
@B3none
Copy link
Member

B3none commented May 16, 2022

https://github.com/b3none/dathost-php

I've now written a wrapper for this to be done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants