Anthrasite / BotPumpkin

A simple Discord bot which includes commands for starting and stopping an AWS instance for hosting a game server.
MIT License
0 stars 0 forks source link

Add delay to server shutdown notification #11

Closed Anthrasite closed 3 years ago

Anthrasite commented 3 years ago

Currently, if someone's status changes immediately after the server is started, the reminder to stop the server will be sent immediately. Some sort of delay should be added to this notification so it is only sent after the server has been running for ~10 minutes.

Anthrasite commented 3 years ago

This can probably be done by simply sending a notification only if a status has changed from the current game to something else, as I originally planned to do. This won't cover the case where someone starts the server and then no one ever launches the game, but the server can be set up to automatically shut down after a period of time of inactivity, so this case shouldn't be an issue.