This project enables starting and stopping a Satisfactory server hosted on DigitalOcean through Discord bot commands, automating the setup and teardown process with DigitalOcean and Cloudflare integration.
- DigitalOcean API key
- Discord bot API key
- Cloudflare API key
- Finds the most recent DigitalOcean snapshot of the Satisfactory server.
- Creates a new droplet from the snapshot.
- Waits for the Satisfactory server to boot up.
- Updates the Cloudflare DNS with the new droplet's IP address.
- Creates a new snapshot from the active droplet.
- Destroys droplet
- Create a
4E5A
.env
configuration (see example:.env copy
). - Run
npm i
. - Run
npm run start
. - The script will shut down upon completion of the upload.