SPT Rescue is a Discord bot designed to manage and rescue the SPT Client. This bot provides a command to reboot a Docker container running the SPT Client in case of emergencies.
It will restart Docker Containers with the com.ceraia.sptrescue=true flag.
- Rescue Command: A Discord slash command to reboot the SPT Client Docker container.
- Permission Check: Ensures only administrators can execute the rescue command.
- Docker
- Node.js
- Bun
- Discord Bot Token
-
Clone the repository:
git clone https://github.com/yourusername/sptrescue.git cd sptrescue -
Install dependencies:
bun install
-
Create a
.envfile:cp .env.example .env
Fill in your Discord bot token in the
.envfile. -
Build the project:
bun run build
-
Start the bot:
bun run start
-
Docker Compose: Alternatively, you can use Docker Compose to run the bot:
docker-compose up -d
The project includes a Dockerfile and docker-compose.yml for containerization.
- Dockerfile: Defines the Docker image for the bot.
- docker-compose.yml: Defines the services and environment variables for Docker Compose.
- /rescue: Reboots the SPT Client Docker container. Only available to administrators.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.
For any inquiries, please contact [your email].