Installation - eliteSchwein/mooncord GitHub Wiki
Install Git first
sudo apt update
sudo apt upgrade
sudo apt install git
Create Discord Application
Discord Applications Page and create an new Application:
go onto theName your application:
Go to the Bot Page:
Create a Bot:
Reset the token (you need the token later in the install script)
Copy the Token for Later, you need it later in the install script
Download MoonCord and start the install script
cd ~/
git clone https://github.com/eliteSchwein/mooncord.git
cd ~/mooncord
bash scripts/install.sh
Welcome to the MoonCord Installer, as soon as you finished the answers the Installation will start. Please enter your Klipper Config Path
if the klipper config path is valid just hit enter, otherwise type the correct absolute path (example /home/pi/klipper_config) and hit enter
MoonCord config found, do you want to overwrite it?
if you have this message a mooncord config is already present, if you dont want to override hit type n and then hitenter
Please enter your Discord Token
enter your token that you generated before and then hit enter
Please enter your Moonraker Token (optional)
if you have the forced login enabled in your moonraker config please enter your api key from your website interface otherwise just hit enter
Please enter your Webinterface URL
if mooncord is not on the same host/computer as moonraker and klipper please enter the website url without the / at the end, otherwise just hit enter
Please enter your Snapshot URL
if mooncord is not on the same host/computer as the camera stream (example crowsnest or mjpgstreamer) please enter the snapshot url , otherwise just hit enter
Please enter your Discord Tag
please type your full discord tag (example#0001) and hit enter, this is required to set yourself as bot controller
NodeJS found, do you want to update it
a node js installation was found, if you arent on debian/ubuntu/raspbian and/or already have nodejs 16 or higher hit n then hit enter, if you are on debian/ubuntu/raspbian please hit y then hit enter
Install Dependencies, this will take some time please wait.....
drink some coffee ☕, eat something 🍔, this step will take some time (on a rpi4 around 7 minutes)...
after that mooncord will temporary start to set the controller and verify that the config is valid, you will see this in the console:
please invite the bot on a Server: INVITEURL and write a Message on this Server with your Account with the Tag YOURTAG
click on the Invite URL and add the MoonCord Bot to your Server, after that just write something in a text channel, after that the temporary running MoonCord should stop, install the service file and fully start MoonCord.
This is optional and not required!
You can add a Suffix to the Service Name with:
bash scripts/install.sh --service_suffix=SUFFIX
And you can change the Config Path, please use a absolute Path:
bash scripts/install.sh --config_path=/THIS/IS/A/EXAMPLE/PATH
You can also use both arguments on the same time:
bash scripts/install.sh --service_suffix=SUFFIX --config_path=/THIS/IS/A/EXAMPLE/PATH