Compare commits

..

2 commits
0.1.8 ... main

Author SHA1 Message Date
ed492e9045
Use newer docker compose command
Some checks failed
Docker Build / build-and-push (push) Has been cancelled
2025-10-31 23:54:01 +01:00
24f65956ab Local development with webserver and demo files
Some checks failed
Docker Build / build-and-push (push) Has been cancelled
2025-07-10 17:25:29 +02:00
8 changed files with 16 additions and 8 deletions

View file

@ -74,7 +74,7 @@ discord.js library to interact with Discord and fetches server stats via the XML
2. Build and start the container: 2. Build and start the container:
```bash ```bash
docker-compose up -d --build docker compose up -d --build
``` ```
3. The bot should now be running and posting server stats to the specified Discord channel. 3. The bot should now be running and posting server stats to the specified Discord channel.

View file

@ -1,8 +1,8 @@
{ {
"application": { "application": {
"serverPassword": "TypeMyServerPasswordHere", "serverPassword": "TypeMyServerPasswordHere",
"serverStatsUrl": "http://1.1.1.1:8080/feed/dedicated-server-stats.xml", "serverStatsUrl": "http://127.0.0.1:8080/feed/dedicated-server-stats.xml",
"serverMapUrl": "http://1.1.1.1:8080/feed/dedicated-server-stats-map.jpg", "serverMapUrl": "http://127.0.0.1:8080/feed/dedicated-server-stats-map.jpg",
"updateIntervalSeconds": 30 "updateIntervalSeconds": 30
}, },
"discord": { "discord": {

View file

@ -1,8 +1,8 @@
{ {
"application": { "application": {
"serverPassword": "TypeMyServerPasswordHere", "serverPassword": "TypeMyServerPasswordHere",
"serverStatsUrl": "http://1.1.1.1:8080/feed/dedicated-server-stats.xml", "serverStatsUrl": "http://127.0.0.1:8080/feed/dedicated-server-stats.xml",
"serverMapUrl": "http://1.1.1.1:8080/feed/dedicated-server-stats-map.jpg", "serverMapUrl": "http://127.0.0.1:8080/feed/dedicated-server-stats-map.jpg",
"updateIntervalSeconds": 30 "updateIntervalSeconds": 30
}, },
"discord": { "discord": {

View file

@ -1,5 +1,3 @@
version: "2"
services: services:
ls25bot: ls25bot:
build: build:
@ -25,3 +23,13 @@ services:
echo "Restarting ls25bot container at $(date)" echo "Restarting ls25bot container at $(date)"
docker restart ls25bot docker restart ls25bot
done done
# This is used for development purposes only
webserver:
image: nginx:alpine
container_name: ls25bot-webserver
restart: always
volumes:
- ./misc/files:/usr/share/nginx/html
ports:
- "8080:80"

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB