Telegram bot for controlling spam, logging, and more
Go to file
2018-02-09 18:24:09 -07:00
.gitignore Cleaned up README and moved config info out of version control 2018-01-28 22:29:50 -07:00
bot.py Fixed parens 2018-02-09 18:24:09 -07:00
LICENSE Initial commit 2018-01-25 19:51:46 -07:00
model.py Ban and hide now getting logged in db 2018-02-09 18:13:09 -07:00
Procfile Fixing Error R10 2018-01-31 08:30:07 -07:00
README.md Delete any message worthy of a ban. 2018-02-06 11:29:46 -07:00
requirements.txt Added Unidecode to reqs 2018-02-01 21:02:19 -07:00

Telegram Bot

NOTE Development version of bot than does message monitoring and more.

Installation

  • Required: Python 3.x, pip, PostgreSQL
  • Clone this repo
  • pip install --upgrade -r requirements.txt

Telegram Bot Setup

export TELEGRAM_BOT_TOKEN="4813829027:ADJFKAf0plousH2EZ2jBfxxRWFld3oK34ya"

Database setup

  • Store database URL in environment variable.
export TELEGRAM_BOT_POSTGRES_URL="postgresql://<user>:<password>@localhost:5432/<databasename>"
  • Run: python model.py to setup the DB tables.

Running the bot

  • Run: python bot.py to start logger
  • Messages will be displayed on stdout as they are logged.