diff --git a/Dockerfile b/Dockerfile index 8f7273b..757598f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN npm install RUN npm run build ## Simplyfy the rm commands -RUN rm -rf .ddev/ source/ misc/ .git .gitignore config.example.json Dockerfile docker-compose.yml README.md +RUN rm -rf .ddev/ source/ misc/ .git .gitignore config.example-en.json Dockerfile docker-compose.yml README.md CMD ["npm", "run", "start-only"] ENTRYPOINT ["npm", "run", "start-only"] \ No newline at end of file diff --git a/README.md b/README.md index 729b87d..808071a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This bot will post the server stats of a Farming Simulator 25 server to a Discor name, server password, server time, and the player count. The bot will update the server stats every x seconds ( configurable). -![discord_embed.png](misc%2Fimages%2Fdiscord_embed.png) +![discord_embed.png](misc%2Fimages%2Fdiscord_en.png) The bot is written in Node.js and uses the [discord.js](https://discord.js.org/) library to interact with the Discord API. It @@ -36,7 +36,7 @@ interface of the server). ## Configure the bot 1. Clone the repository to your server -2. Move the `config.example.json` to `config.json` +2. Move the `config.example-de.json` or `config.example-en.json` to `config.json` (depending on your language) 3. Fill in the required fields in the `config.json` file, do not delete fields, just leave them empty for default values 4. All fields with a `(*)` are required fields for the bot to work. The other fields are optional and can be left by default diff --git a/config.example-de.json b/config.example-de.json new file mode 100644 index 0000000..d340c2d --- /dev/null +++ b/config.example-de.json @@ -0,0 +1,41 @@ +{ + "application": { + "serverPassword": "TypeMyServerPasswordHere", + "serverStatsUrl": "http://1.1.1.1:8080/feed/dedicated-server-stats.xml", + "serverMapUrl": "http://1.1.1.1:8080/feed/dedicated-server-stats-map.jpg", + "updateIntervalSeconds": 30 + }, + "discord": { + "channelId": "DiscordChannelId_12345", + "botToken": "DiscordSecretBotToken_XYZ" + }, + "translation": { + "discordEmbed": { + "title": "LS25 Server Status", + "descriptionOnline": "Der Server ist online", + "descriptionOffline": "Der Server ist offline", + "descriptionUnknown": "Serverdaten werden abgerufen", + "titleServerName": "Server-Name:", + "titleServerMap": "Server-Karte:", + "titleServerMods": "Server-Mods:", + "titleServerPassword": "Server-Passwort:", + "titleServerTime": "Server-Zeit:", + "titlePlayerCount": "Spieler online:", + "noPlayersOnline": "Keine Spieler online" + }, + "common": { + "monthJanuary": "Januar", + "monthFebruary": "Februar", + "monthMarch": "März", + "monthApril": "April", + "monthMay": "Mai", + "monthJune": "Juni", + "monthJuly": "Juli", + "monthAugust": "August", + "monthSeptember": "September", + "monthOctober": "Oktober", + "monthNovember": "November", + "monthDecember": "Dezember" + } + } +} \ No newline at end of file diff --git a/config.example.json b/config.example-en.json similarity index 100% rename from config.example.json rename to config.example-en.json diff --git a/misc/images/discord_de.png b/misc/images/discord_de.png new file mode 100644 index 0000000..2887ad4 Binary files /dev/null and b/misc/images/discord_de.png differ diff --git a/misc/images/discord_embed.png b/misc/images/discord_embed.png deleted file mode 100644 index ee5ac9d..0000000 Binary files a/misc/images/discord_embed.png and /dev/null differ diff --git a/misc/images/discord_en.png b/misc/images/discord_en.png new file mode 100644 index 0000000..0eb33a8 Binary files /dev/null and b/misc/images/discord_en.png differ