Blyzz616 / PZ-Disco

Discord integration for Project Zomboid
GNU General Public License v3.0
0 stars 0 forks source link

What the discord integration looks like

# PZ-Disco Discord integration for Project Zomboid

Requirements Ok, So this needs to be run on the instance that is running the Project Zomboid server. Obviously the OS needs to be Linux with Bourne Again Shell (BASH) and a few other dependencies, listed later. You'll also have to have your own Discord Server (or have admin rights to the server) to get a Webhook set up. The user that you use to install DisBoid should have sudo access.

Running the script:

Save the install-wizard.sh to your home directory, or wherever, and make sure that you set it so be execuable:

sudo chmod ug+x install-wizard.sh

File list:

The install wizard creates more executable scripts in /opt/disboid/ and one (start.sh) which is created in your home folder these are described below

Installation:

Open a terminal to your server and make sure that all the dependencies are installed:

sudo apt update -y && sudo apt upgrade -y
sudo apt install curl screen sed grep whiptail

All of these are installed by default on most distros.

Then run the wizard:

./install-wizard.sh

Running the scripts:

Start your server

cd ~
sudo ./start.sh

CAUTION! Running multiple instances of these scripts WILL cause duplicated output in discord.

Added Extra: I include cronjobs to do this all for me

sudo crontab -e

addthe following lines

@reboot         /home/boid/start.sh > /dev/null 2

If you have a monitor plugged into your server and you want to use it to watch the raw PZ output like me, add this line as well:

@reboot         tail -Fn0 ~/Zomboid/server-console.txt > /dev/tty1

Payoff:

Now join your Project Zomboid server and watch discord for all the glory.

Known bugs / To Do:

The join script is not working so nicely, it isn't displaying the user ping as it should be for some reason. I'll work on it at some point, but for right now, it is working well enough.