https://github.com/pando85/troll-bot
Annoy your friends with this Telegram Bot
https://github.com/pando85/troll-bot
Last synced: 2 months ago
JSON representation
Annoy your friends with this Telegram Bot
- Host: GitHub
- URL: https://github.com/pando85/troll-bot
- Owner: pando85
- Created: 2016-03-05T01:21:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T20:49:55.000Z (almost 3 years ago)
- Last Synced: 2023-08-06T00:42:05.742Z (almost 3 years ago)
- Language: Python
- Size: 38.1 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Troll Bot
=========
Annoy your friends with this Telegram Bot
Setup
=====
You will need to add this enviroment variables:
* BOT_TOKEN: token from [@BotFather](https://telegram.me/BotFather)
* BOT_URL(Optional): url where you setup webhook
* CERTIFICATE_PATH(Optional): self signed certificated to [set webhook](https://core.telegram.org/bots/api#setwebhook).
* 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](https://telegram.me/BotFather)
Example using docker-compose:
```yml
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"
```