Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

pando85/troll-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Troll Bot

Annoy your friends with this Telegram Bot

Setup

You will need to add this enviroment variables:

  • BOT_TOKEN: token from @BotFather
  • BOT_URL(Optional): url where you setup webhook
  • CERTIFICATE_PATH(Optional): self signed certificated to set webhook.
  • MONGO_URI: mongoDB connection URI.

If BOT_URL is not set, Bot will run without webhook.

Need to set privacy off using /setprivacy command in @BotFather

Example using docker-compose:

troll-bot:
  restart: always
  image: pando85/troll-bot
  links:
    - mongo
  ports:
     - "5000:5000"
  volumes:
    - ./cert.pem:/tmp/cert.pem:ro
  environment:
    - BOT_TOKEN= Telegram Bot API token
    - BOT_URL= Telegram Bot URL
    - CERTIFICATE_PATH=/tmp/cert.pem
    - DB_HOST=mongo
    - DB_PORT=27017

mongo:
  restart: always
  image: mongo
  volumes_from:
    - data
  expose:
    - "27017"

data:
  restart: always  
  image: mongo:3.2.4
  volumes:
    - /data/db
  command: "true"
  

About

Annoy your friends with this Telegram Bot

Resources

Stars

Watchers

Forks

Packages

No packages published