Skip to content

IceEagle132/Farming-Simulator-25-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Farming Simulator 25 Discord Bot

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

Features

  • 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.

Prerequisites

  1. Install Node.js: Download Node.js and install the latest LTS version.
  2. Install Git: Download Git and install it if not already installed.

Installation

  1. Clone the Repository:

    git clone https://github.com/IceEagle132/Farming-Simulator-25-Discord-Bot.git
    cd Farming-Simulator-25-Discord-Bot
  2. Install Dependencies:

    npm install
  3. 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, and career_savegame_url.
    • Update Interval: Customize the intervals for updates in minutes.
  4. Optional: Enable or disable features:

    • Set mod_list_url to null to disable the Mod List feature.
    • Set server_password to null 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) ").

Running The Bot

Edit the Bot Config Settings before running the bot.

  1. Ensure all dependencies are installed and the config.json file is properly configured.
  2. Run the bot using:
    node bot.js
  3. The bot will log into Discord and start providing updates based on the configuration.

Issues and Support

If you encounter any issues, feel free to reach out to me on Discord: IceEagle132

Contact


Contributing

Contributions are welcome! Feel free to submit pull requests to improve functionality or fix bugs.


License

This project is licensed under the MIT License.

About

A Simple Discord Bot For Farming Simulator 25

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published