A simple script to notify via Discord Webhooks if there are discounts in the game Escape from Tarkov.
This project requires NodeJS and NPM. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
A Discord Webhook is required to use this script, because that's how it's going to notify that there's discounts active. Make sure you create it first. To create it:
- Go to your Discord server settings.
- Go to Integrations
- Click to Webhooks
- Click on "New Webhook". A webhook will be created with a random name.
- Click on it, change the name if you want and select the text channel this script is going to notify on.
- Copy the webhook URL, you'll need to paste in the .env file in step (3)
$ git clone https://github.com/Fern1ck/eft-discount-checker
$ cd eft-discount-checker
$ npm i
Create a .env
file in the root of your project and insert
the following key/value pairs in the following format of KEY=VALUE
:
DISCORD_WEBHOOK = your_webhook_url
MINUTES_IN_BETWEEN_QUERIES = 60
Replace "your_webhook_url with the url you copied from step (1).
$ npm start