Skip to content

zenatuz/promobot

 
 

Repository files navigation

PromoBot

Requirements

  • Docker>=19.03.5
  • Docker-compose>=1.24.1
  • MongoDB>=4.2.8
  • Python 3.8

Local installation

$ [sudo] apt install python3.8 python-pip
$ pip install setuptools
$ ./setup.py install

How to

Run

Local

$ promobot --help
$ promobot
$ promobot --bot

Docker

$ docker-compose up -d

Configure

Environment variables:

TELEGRAM_TOKEN=<telegram-token>
TELEGRAM_CHAT_PASSWD=<chat-password>
INITIAL_KEYWORDS=<keyword1>;<keyword2>
DELAY=10
MUTED=false
RESET_TIME=24
TIMEOUT=10

If your environment has proxy configuration, there are more environment variables such as

PROXY_ENABLED=true
HTTP_PROXY=<http-proxy>
HTTPS_PROXY=<https-proxy>
AUTH_PROXY=<user>:<passwd>

Docker image

The image is hosted by Docker Hub promobot docker hub

$ docker pull leandro2r/promobot:latest

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.7%
  • Makefile 2.6%
  • Dockerfile 1.7%