mirror of
https://github.com/cloudmaker97/FS25-Discord-Bot.git
synced 2025-12-06 08:28:33 +00:00
Compare commits
No commits in common. "main" and "0.1.8" have entirely different histories.
8 changed files with 8 additions and 16 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"application": {
|
"application": {
|
||||||
"serverPassword": "TypeMyServerPasswordHere",
|
"serverPassword": "TypeMyServerPasswordHere",
|
||||||
"serverStatsUrl": "http://127.0.0.1:8080/feed/dedicated-server-stats.xml",
|
"serverStatsUrl": "http://1.1.1.1:8080/feed/dedicated-server-stats.xml",
|
||||||
"serverMapUrl": "http://127.0.0.1:8080/feed/dedicated-server-stats-map.jpg",
|
"serverMapUrl": "http://1.1.1.1:8080/feed/dedicated-server-stats-map.jpg",
|
||||||
"updateIntervalSeconds": 30
|
"updateIntervalSeconds": 30
|
||||||
},
|
},
|
||||||
"discord": {
|
"discord": {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"application": {
|
"application": {
|
||||||
"serverPassword": "TypeMyServerPasswordHere",
|
"serverPassword": "TypeMyServerPasswordHere",
|
||||||
"serverStatsUrl": "http://127.0.0.1:8080/feed/dedicated-server-stats.xml",
|
"serverStatsUrl": "http://1.1.1.1:8080/feed/dedicated-server-stats.xml",
|
||||||
"serverMapUrl": "http://127.0.0.1:8080/feed/dedicated-server-stats-map.jpg",
|
"serverMapUrl": "http://1.1.1.1:8080/feed/dedicated-server-stats-map.jpg",
|
||||||
"updateIntervalSeconds": 30
|
"updateIntervalSeconds": 30
|
||||||
},
|
},
|
||||||
"discord": {
|
"discord": {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
ls25bot:
|
ls25bot:
|
||||||
build:
|
build:
|
||||||
|
|
@ -22,14 +24,4 @@ services:
|
||||||
sleep 7200 # Each 2 hours
|
sleep 7200 # Each 2 hours
|
||||||
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.
|
Before Width: | Height: | Size: 7.5 KiB |
Loading…
Reference in a new issue