Skip to content

DatHost Support #69

@Shaneajm

Description

@Shaneajm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions