mirror of
https://github.com/cloudmaker97/FS25-Discord-Bot.git
synced 2025-12-06 00:18:34 +00:00
1.2 KiB
1.2 KiB
Farming Simulator 25 - Discord Bot
Create a Discord bot
- Open the Discord Developer Portal
- Click on
New Application - Name your application
- Click on
Botin the left menu - Click on
Copyto copy the bot token - Click on
Installationin the left menu - Add the Permission 'Administrator' to the bot guild installation (bottom of the page)
- Click on
Copyto copy the URL to install the bot to a guild - Your installation link url should look like this:
https://discord.com/oauth2/authorize?client_id=CLIENT_ID
Install the bot
- Clone the repository
- Move the
config.example.jsontoconfig.json- serverPassword: The password to the server
- serverStatsUrl: The feed URL to the server stats (from the web interface from the server)
- serverMapUrl: The feed URL to the server map (from the web interface from the server)
- guildId: The guild id where the bot should be installed
- channelId: The channel id where the bot should post the server stats
- botToken: The bot token from the Discord Developer Portal
- Add the bot token to the
config.json - Add the prefix to the
config.json - Run
npm install - Run
npm start