Skip to content

If you live in Belarus, ride a motorcycle and want to buy a chopper/cruiser - this is bot is 4u

Notifications You must be signed in to change notification settings

dzhitomirsky/telegram-moto-bot

Repository files navigation

CircleCI

onliner-moto-bot

Purpose

Yes I do riding a motorcycle, do not tell me I'm crazy! When the time has come to change an iron horse, I'm a little bit sick of monitoring vehicle-trading web-sites from my mobile. So, I've implemented a bot using python-telegram-bot that aggregates motocycles of charecteristics that I'm interested in from onliner.by

How to lounch?

  • Go to (telegram bot father contact)[https://telegram.me/BotFather] and register a new bot - you will be given private token. Do not show your token to anyone!
  • Ruild a docker image:
cd telegram-moto-bot
docker build -t my-moto-bot .
  • Run it
docker run -e TELEGRAM_TOKEN=<your priovate token> my-moto-bot
  • Thats all - add your bot with @<bot_name> to your contact list - and start picking new bikes!

Contributing & lounching in dev mode

To develop a bot I used Python 2.7, pipenv, so launch it locally you have to do the next:

  • install pipenv:
pip install pipenv
  • Step into the repo filder and create virtual env:
cd telegram-moto-bot;
pipenv install;
  • Export env variable with your token:
export TELEGRAM_TOKEN=<your private token>
  • Start virtual env and run a bot:
pipenv shell;
python main.py

Build image on circle ci

  • for repo
  • login to circle ci
  • change settings in .circle (e.g. dockerhub repo name)
  • press build on circle ci
  • add DOCKER_USER & DOCKER_PASS env varibles on circle ci to be able to push to your DH repo

Please, do not hesitate to change code on your taste or push me with some questions!

About

If you live in Belarus, ride a motorcycle and want to buy a chopper/cruiser - this is bot is 4u

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages