Skip to content

A script to send proxmox tasks to discord using webhooks <3!

License

Notifications You must be signed in to change notification settings

MythicalLTD/proxmox-discord-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxmox Discord Notify

A script to send proxmox tasks to discord using webhooks <3!

Support Server:

Installation

To install this you need to first install nodejs on your server:

Install Node Version Manager

To install nodejs you first need a version manager:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

Add Node Version Manager

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

Installing NodeJs (20)

To install nodejs 20 you have to run:

nvm install 20 

Installing Requirements

You have to install some requirements

npm i -g pm2 # Global requirement for 24/7
npm i # Execute this where the source code is

Config the bot

You will first have to modify the config file

mv config-example.json config.json
nano config.json

Starting the bot

All that left is to make it run!

pm2 start index.js
pm2 save
pm2 startup