1
1
# Farming Simulator 25 - Discord Bot
2
2
3
- This bot periodically updates a Discord channel with stats from a Farming Simulator 25 server.
4
- It posts the server name, password, time, and player count. Written in Node.js, it uses the
5
- discord.js library to interact with Discord and fetches server stats via the XML feed
3
+ This bot periodically updates a Discord channel with stats from a Farming Simulator 25 server.
4
+ It posts the server name, password, time, and player count. Written in Node.js, it uses the
5
+ discord.js library to interact with Discord and fetches server stats via the XML feed
6
6
(accessible through the server's web interface). The update interval is configurable.
7
7
8
8
## Screenshots
9
9
10
10
<details >
11
11
<summary >Discord embed in english</summary >
12
12
13
- ![ discord_en.png] ( misc%2Fimages%2Fdiscord_en.png )
13
+ ![ discord_en.png] ( misc%2Fimages%2Freadme% 2Fdiscord_en.png )
14
14
15
15
</details >
16
16
17
17
<details >
18
18
<summary >Discord embed in german</summary >
19
19
20
- ![ discord_de.png] ( misc%2Fimages%2Fdiscord_de.png )
20
+ ![ discord_de.png] ( misc%2Fimages%2Freadme% 2Fdiscord_de.png )
21
21
22
22
</details >
23
23
24
24
<details >
25
25
<summary >Terminal output (NodeJS)</summary >
26
26
27
- ![ bot_terminal.png] ( misc%2Fimages%2Fbot_terminal.png )
27
+ ![ bot_terminal.png] ( misc%2Fimages%2Freadme% 2Fbot_terminal.png )
28
28
29
29
</details >
30
30
@@ -56,8 +56,8 @@ discord.js library to interact with Discord and fetches server stats via the XML
56
56
57
57
1 . Clone the repository to your server
58
58
2 . Locate the configuration files:
59
- - Use either
60
- - ` config.example-de.json ` (for German)
59
+ - Use either
60
+ - ` config.example-de.json ` (for German)
61
61
- ` config.example-en.json ` (for English)
62
62
- Rename the chosen file to ` config.json ` .
63
63
3 . Open ` config.json ` and fill in the required fields:
@@ -72,21 +72,27 @@ discord.js library to interact with Discord and fetches server stats via the XML
72
72
73
73
1 . Navigate to the root directory of the cloned repository.
74
74
2 . Build and start the container:
75
+
75
76
``` bash
76
77
docker-compose up -d --build
77
78
```
79
+
78
80
3 . The bot should now be running and posting server stats to the specified Discord channel.
79
81
80
82
### Option 2: Run Without Docker (Using Node.js)
81
83
82
84
1 . Navigate to the root directory of the cloned repository.
83
85
2 . Install dependencies:
86
+
84
87
``` bash
85
88
npm install
86
89
```
90
+
87
91
3 . Start the bot:
92
+
88
93
``` bash
89
94
npm start
90
95
```
96
+
91
97
4 . The bot should now be running and posting server stats to the specified Discord channel.
92
98
- Note: Closing the terminal will stop the bot. Use a process manager like [ PM2] ( https://pm2.io/ ) to keep it running.
0 commit comments