A script to send proxmox tasks to discord using webhooks <3!
Support Server:
To install this you need to first install nodejs on your server:
To install nodejs you first need a version manager:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
To add node version manager to path you have to run:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
To install nodejs 20 you have to run:
nvm install 20
You have to install some requirements
npm i -g pm2 # Global requirement for 24/7
npm i # Execute this where the source code is
You will first have to modify the config file
mv config-example.json config.json
nano config.json
All that left is to make it run!
pm2 start index.js
pm2 save
pm2 startup