An open API service indexing awesome lists of open source software.

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. 🤖

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.