aayushdutt / stock-checker

A telegram bot to check (PS5) stock availability on Flipkart Amazon etc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage

With Docker

  1. Get a telegram bot token from @botfather, and channel id (can also use your own user id) from @jsondumpbot (https://github.com/nadam/jsondumpbot) and paste it in docker-compose.yml
  2. Run docker-compose up -d
  3. Find logs in logs/log.log file

Without Docker

  1. Install node and npm
  2. Run npm i to install node_modules
  3. Run export TELEGRAM_BOT_TOKEN=<your bot token here> to add bot token to environment variable
  4. Run export CHANNEL_ID=<channel id or user id here> to add bot token to environment variable
  5. Run npm start to start the bot

About

A telegram bot to check (PS5) stock availability on Flipkart Amazon etc


Languages

Language:JavaScript 94.9%Language:Dockerfile 5.1%