Dostlar STUDIO / Mods / Discord Bridge

Discord Bridge

Discord and web panel · Server integration

ReleasedFS25_DiscordBridge

There is no network access inside the FS25 mod environment, so the mod writes to the server's disk and the bridge reads it over FTP. Running that bridge yourself used to be part of the deal; it is not any more. The bridge is up around the clock at bridge.dostlarkonagi.com: you sign in with Discord and a four-step wizard tests your FTP details, invites the bot into your own Discord server and lets you pick the channels. Setup happens in the browser and takes about five minutes. Nothing is installed on your computer, and the FTP password is stored encrypted and never shown on any screen.

Features

What it does

  • Live dashboard: a single self-updating message in Discord with server time, weather, players and market. You pick the sections.
  • Fifteen slash commands: server, farm, players, vehicles, fields, contracts, prices, weather, animals, productions, silos, history, events.
  • Admin commands go back into the game: announcement, chat message, save, money, time scale, kicking a player, refreshing the board. Permission is granted by Discord role.
  • Alert rules are configured in the browser: server down, field ready to harvest, vehicle out of fuel, mod error, save taken. Log watching reports a Lua error together with the mod responsible.
  • Web panel: field ownership on the map, balance chart, price history, farm detail. Discord login and role-based visibility.
  • The panel has three tiers: admin, moderator and member. On the farm-bound tabs (overview, farm, map, fields, vehicles, animals, production, market, invoices and more) a member sees only their own farm's data; the admin sees every farm, and for moderators that is a setting. Which tier sees which tab is configurable.
  • With Farm Market installed the panel gets Market and Invoices tabs: open sale and buy listings, recent trades and numbered, itemised, printable invoice documents. Invoice notices are posted to Discord as well.
  • Savegame backup: the save folder is zipped after every game save and the last twelve copies are kept.
  • With Contract Manager installed, its rules, contract types, farm statistics and history show up in the panel and the settings can be changed from the browser.
  • With Server Diagnostics installed, its measurement results go into the snapshot and the measurement can be started and stopped from the dashboard. Without that mod nothing changes.
  • Data refreshes every thirty seconds. One bot joins many Discord servers and each server's data is kept separate.

Works with

With our other mods

Works on its own. With these mods also installed, you get the following:

  • Contract Manager v1.26.0.0 · Released

    The panel gets a Contracts tab with the rules, contract types, farm statistics and history, and the settings can be changed from the browser. Contract events and guard blocks are posted to Discord.

  • Farm Market v1.9.0.0 · Early development

    The panel gets a Player market tab with open sale and buy listings, recent trades and a searchable invoice ledger. Listings, purchases, deliveries and invoices are posted to Discord as well.

Setup

How to use it

  1. Put the mod zip into the server's mods folder only, then restart the server. You do not need to hand it to players and it needs no configuration.
  2. Go to bridge.dostlarkonagi.com, sign in with Discord and choose to add a server.
  3. Enter the FTP details from your host; the connection is tested and the folder the mod writes to is located.
  4. Invite the bot to your Discord server, pick the alert, dashboard, chat and command channels plus the admin role. The first data arrives within thirty seconds.
  5. You need to be an administrator of the Discord server; inviting the bot and picking channels requires that permission.