This commit is contained in:
Raven Scott 2024-09-18 19:45:25 -04:00
parent 85ec0ac68d
commit adebf8b317

View File

@ -410,7 +410,9 @@ Containers in Discord-Linux have a limited lifespan, typically lasting 7 days. U
### Automatic Cleanup
The system automatically checks for expired containers and removes them to ensure resources are not wasted on unused containers. Heres a snippet of how the system determines whether a container has expired:
The system automatically checks for expired containers and removes them to ensure resources are not wasted on unused containers.
Heres a snippet of how the system determines whether a container has expired:
```javascript
function isDateBeforeToday(date) {
@ -513,7 +515,9 @@ The bot executes commands inside Docker containers specific to each user, provid
### Command Handling Flow
The bot's `/x` command allows users to execute commands within their container. Heres the general structure of how it works:
The bot's `/x` command allows users to execute commands within their container.
Heres the general structure of how it works:
```javascript
module.exports = {
@ -1513,7 +1517,9 @@ module.exports = {
### REST Request for User Registration
The registration process sends a POST request to the NGINX Proxy Manager API to create a new user account. Heres what the request looks like:
The registration process sends a POST request to the NGINX Proxy Manager API to create a new user account.
Heres what the request looks like:
```json
POST http://internal-api/api/users