Browse Source

Feat(shop-checker): First commit

master
Samuel Pua 2 years ago
commit
fe698e3cd8
  1. 32
      README.md
  2. 164
      main.py
  3. 2
      requirements.txt

32
README.md

@ -0,0 +1,32 @@
# Darktide Shop Notifier
## About
Notifies available items at shop
## Build
Execute the following to get prerequisites
```
pip3 install -r requirements.txt
```
## Preparation
You will need to obtain the following information ahead of execution:
- Telegram Webhook URL
- Atoma Refresh JWT Token
To obtain the necessary information, conduct the following steps:
Step 1: Login to https://accounts.atoma.cloud/
Step 2: Go to developer console and find the request URL (/queue/refresh), and copy the Bearer token (e.g. eyJh....)
- Go to developer console and click on the Network tab
- Refresh the page
- Find the request URL (/queue/refresh) and look for the request header section
- Copy the Bearer token (e.g. eyJh....)
Step 3: Register for a Telegram webhook using @WebhookEverythingBot (type /help to see instructions, /register_webhook_body to register token)
## Run
Execute the following to run the Python script
```
python3 main.py
```

164
main.py

File diff suppressed because one or more lines are too long

2
requirements.txt

@ -0,0 +1,2 @@
requests
pyjwt
Loading…
Cancel
Save