https://github.com/bene/stockbot
Super simple stock checker. 🤖
https://github.com/bene/stockbot
Last synced: about 2 months ago
JSON representation
Super simple stock checker. 🤖
- Host: GitHub
- URL: https://github.com/bene/stockbot
- Owner: bene
- License: mit
- Created: 2021-02-15T13:05:15.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-25T23:27:33.000Z (over 4 years ago)
- Last Synced: 2025-02-25T05:42:55.046Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# StockBot
You can use StockBot to get notified when a product (PS5) is available. It's
intended for personal use only. Don't be unkind and use it for scalping.
Currently, StockBot only supports stores which are server-side rendered.
## Usage
To configure notifications, create a `.env` file and add the variables for the
service you want. Have a look at the `.env.example` file to get the variable
names you need. To start the bot install [Deno](https://deno.land/#installation)
and run:
```
PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@9.0.2/install.ts
```
```
deno run -A main.ts
```
Or create a binary:
```
deno compile -A main.ts
```
## Development
To add a new store, create a file in the `stores` folder. Then register the new
store in the `src/environment.ts` file. As long as there are no docs, have a
look at the `stores/Conrad.ts` store as an example.
Make sure to use Deno's formatter before opening a PR:
```
deno fmt
```
### Docker
```
docker build -t bene/stockbot:latest .
```
Made with ☕️ by bene.