A Target in-store stock monitor for both digital and disc PS5 consoles that sends in stock alerts to SMS using Twilio.
This project comes with an example .env file that you can use as a base to help, first you will need to copy and rename this file with the steps below:
- Copy the
example.env
file. - Rename it to
.env
.
This project utilizes Twilio to send SMS alerts, and you will need to set up an account to use this feature. Once you obtain your ACCOUNT SID
, AUTH TOKEN
, Messaging Service SID
, and the phone number you want to send SMS alerts to, you can continue with the steps below:
- Navigate to the
.env
file. - Insert your details into the
PHONENUM
,ACCOUNTSID
,AUTHTOKEN
, andMESSAGINGSERVICESID
variables.
You will need to chose which Target store you want to monitor and in order to do this, you will need to know the store ID of that Target in which you can do so with the steps below:
- Navigate to https://www.target.com/store-locator/find-stores.
- Find and select your store.
- Your store ID will be the numbers at the end of the link (should be 3-4 characters).
- Navigate back into the
.env
file and insert the store ID into theSTOREID
variable.
In order to keep this monitor running safe and smooth, you will need to add proxies. Follow the steps below to configure proxies:
- Create a file named
proxylist.txt
in the main folder. - Add IPs/URLs, which should be separated by a new line.
- These proxies should be formatted as
http://username:password@ip:port
orhttp://127.0.0.1:12345
. - Navigate to the
index.js
file and find the variable callednumProxies
. You then want to change the value of this variable to however many proxies you have in theproxylist.txt
file.
To start the monitor, open a terminal and run these commands:
- Set directory to bot directory:
cd "C:/Path/To/Bot/Folder"
- Install the dependencies (you only have to do this once):
npm install
- Run with the following command:
npm start
This project is licensed under the MIT License - see the LICENSE.md file for details.