Feat(shop-checker): First commit

This commit is contained in:
2023-01-01 23:52:35 +08:00
commit fe698e3cd8
3 changed files with 198 additions and 0 deletions

32
README.md Normal file
View File

@@ -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 Normal file

File diff suppressed because one or more lines are too long

2
requirements.txt Normal file
View File

@@ -0,0 +1,2 @@
requests
pyjwt