Environment is using 2 variables :
WEBHOOK
: Corresponds to the Discord webhook of your channelSERVERID
: The type of server you want to check for availability
- Check in OVH Availabilities route
- You'll find a big array with multiple objects
- Inside each object you have a
server
variable
For example "server":"22sk010"
leads to the cheapest kimsufi offer
-
You want to start it on your own:
- Type
yarn start
in a terminal, while the program is running, the bot will check for availability
- Type
-
You want to let it run on a server:
- Install
pm2
with the commandnpm install --global pm2
- Type
pm2 start
at the root folder of the project - Check if the program is running with
pm2 list
- Install