Skip to content

bene/stockbot

Repository files navigation

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 and run:

PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/[email protected]/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.

About

Super simple stock checker. 🤖

Resources

License

Stars

Watchers

Forks

Releases

No releases published