A customizable Discord bot designed to provide crop price history, best prices, player status, and live server updates for Farming Simulator 25 players.
Supported Hosting Options
- VPS (Virtual Private Server) ✅
- Home Hosted ✅
- Other hosting options ❌ Not Supported - To Be Added
- Updates Discord channels with Farming Simulator server status.
- Announces player joins and leaves with optional admin tags.
- Customizable embeds for server info and player activity.
- Install Node.js: Download Node.js and install the latest LTS version.
- Install Git: Download Git and install it if not already installed.
-
Clone the Repository:
git clone https://github.com/IceEagle132/Farming-Simulator-25-Discord-Bot.git cd Farming-Simulator-25-Discord-Bot
-
Install Dependencies:
npm install
-
Edit the Config File: Open
config.json
and update the following:- Bot Token: Add your Discord bot token from the Discord Developer Portal.
- Channel IDs: Replace placeholders with your specific Discord channel IDs.
- Server URLs: Input your Farming Simulator server's
stats_url
,mod_list_url
, andcareer_savegame_url
. - Update Interval: Customize the intervals for updates in minutes.
-
Optional: Enable or disable features:
- Set
mod_list_url
tonull
to disable the Mod List feature. - Set
server_password
tonull
to disable the Server Password display. - Message Templates: Customize the player join and leave message templates:
player_joined_title
: Title for the player joined message.player_joined_description
: Description for the player joined message. Placeholders:{player_name}
,{admin_note}
,{server_name}
.player_left_title
: Title for the player left message.player_left_description
: Description for the player left message. Placeholders:{player_name}
,{admin_note}
,{server_name}
,{total_playtime}
.
- Set
server_name_string_to_remove
: Specify a string to be removed from the server name, if needed (e.g.,"(HostingCompanyName) "
).
- Set
Edit the Bot Config Settings before running the bot.
- Ensure all dependencies are installed and the
config.json
file is properly configured. - Run the bot using:
node bot.js
- The bot will log into Discord and start providing updates based on the configuration.
If you encounter any issues, feel free to reach out to me on Discord: IceEagle132
Contributions are welcome! Feel free to submit pull requests to improve functionality or fix bugs.
This project is licensed under the MIT License.