A Discord bot for Palworld servers. This bot can help you with the following:
- Get information about the server (general information and the server's metrics)
- Get information about the players (all players, active players or a specific player)
- Send and receive messages to/from the server chat in Discord
- Moderate the server with use of the Palworld API/RCON
This project is designed to work for a Palworld server running on a Linux machine. If you use Windows, you can still use the discord bot, but you will need to do a bit of coding to make the bot work.
Some features are still in development, so they might not work as intended.
- Get a server's general info (ip, port, name, version, description, password)
- Get a server's status: online/offline, player count, uptime, fps, frame time
- Get a server's active player list
- Get a player's info: name, level, location
- Communication channel to talk with people in discord and palworld, also view join/leave messages
- Get the server settings (e.g. difficulty, max players, death penalty)
- Admin commands (kick, ban, unban, save, shutdown, force shutdown)
- Get a list of all players
- Link/unlink your discord and palworld account
- Palworld RCON integration
- Get recent server logs
- Change directory to
Steam/steamapps/common/PalServer/
(or wherever your Palworld server is stored) - Run
git clone https://github.com/Bluesheep33/Palcord.git
to add the remote repository - Make sure you have all dependencies installed
- Create a bot on the Discord Developer Portal
- Invite the bot to your discord server
- Stop the palworld server if it's running
- Go to the
Pal/Saved/Config/LinuxServer/
directory and open thePalWorldSettings.ini
file- Set
RESTAPIEnabled
totrue
- Set
LogFormatType
toJson
- Set
- Copy the discord bot token and put it in the
config_template.json
file- This token can be found on the Discord Developer Portal under the
Bot
tab of your application
- This token can be found on the Discord Developer Portal under the
- Copy your discord user id and put it under
adminId
- This is for the bot to know who the server admin is and to allow you to use the admin commands
- Put the rest api server ip and port in this same file
- If you're running the server on the same computer as the bot, you can use
localhost
or127.0.0.1
as the ip. Otherwise, put the ip of the other computer running the server. - Note that the port should be the port that the rest api is running on, not the palserver port. By default this port is
8212
- If you're running the server on the same computer as the bot, you can use
- Put the username and password of the server admin in this file
- The username is
admin
by default, the password is the same as the one you use to log into the server as admin (the one you set in the server settings)- If you haven't set a password, you can set one in the PalWorldSettings.ini file
- Note that the password is stored in plain text in the config file, so make sure you keep this file secure from others
- The username is
- Put the public ip of your Palworld server under publicIp
- This is used to display the ip of the server in the bot's server info command
- Put the default password of the server in as well
- If you haven't set a password, you can set one in the PalWorldSettings.ini file
- If you don't want to use a password, you can leave this field blank
- channelId should be set to the id of the discord channel where the bot will send messages from the server chat
- You can get this id by right-clicking on the channel and clicking copy id
- Lastly, rename the file to
config.json
- Always use the
start-server-and-bot.sh
script to start the server and bot - The global slash commands will take some time to get registered when running for the first time, after a few hours the commands will show
YouTube video for guiding through setup will come here
Pictures of the bot will come here
Feel free to contribute to this repository by any means. I'm open to suggestions and improvements.
If you have any questions, feel free to open a new issue or ask me on the Discord server: adaja bots
This project is licensed under the MIT License. See LICENSE for details.