The bot will log in to your Distiller account, navigate to the specified list, and search for the whisk(e)ys on the list in all the provided ABC stores (Virginia only). The bot will print out all the search results organized by store (or post them on slack if the webhook is provided). I have included a CircleCI config as well that uses it's scheduling workflow feature to run the search on a weekly or daily basis.
npm install
For the bot to run correctly you'll need all of the following fields:
DISTILLER_EMAIL
- Distiller emailDISTILLER_PASSWORD
- Distiller passwordDISTILLER_LIST
- The name of the distiller list you want to search forABC_STORE_LIST
- The list of ABC stores (by store number) that you want to search in, you can grab the store number of all the store you want hereSLACK_WEBHOOK_URL
- (Optional) If this url is provided the results will also be posted to slack.
Sample .env
file
DISTILLER_EMAIL=someemail@gmail.com
DISTILLER_PASSWORD=password
DISTILLER_LIST=wishlist
ABC_STORE_LIST=46,359
SLACK_WEBHOOK_URL=https://myaccountname.slack.com/services/hooks/incoming-webhook?token=myToken
npm test
That's it, enjoy!