https://github.com/macket/paidagogos_drawer
WEB interface for review in Paidagogos Bot
https://github.com/macket/paidagogos_drawer
flask javascript python telegram-bot
Last synced: 2 months ago
JSON representation
WEB interface for review in Paidagogos Bot
- Host: GitHub
- URL: https://github.com/macket/paidagogos_drawer
- Owner: Macket
- Created: 2020-05-04T17:40:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T21:40:15.000Z (about 3 years ago)
- Last Synced: 2025-01-09T08:46:25.894Z (over 1 year ago)
- Topics: flask, javascript, python, telegram-bot
- Language: JavaScript
- Homepage:
- Size: 2.59 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Paidagogos Drawer
Paidagogos Drawer provides the review interface for teachers in [Paidagogos Bot](https://github.com/Macket/paidagogos_bot).
## Getting Started
Paidagogos bot requires Python 3.7 and packages specified in ```requirements.txt```.
You can install them with
```
pip install -r requirements.txt
```
Before you start Paidagogos it is necessary to create ```.env``` file:
```
touch .env
```
and fill in this file according to the example below:
```
DEBUG = True
BOT_TOKEN = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ADMIN_ID = XXXXXXXXXXX
DATABASE_URL = postgres://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
DB_NAME = paidagogos_db
DB_USER = user
DB_PASSWORD = XXXXXXXXXXX
DB_HOST = localhost
PROXY = https://XXX.XXX.XXX.XXX:XXXX
```
**ATTENTION!!!** ```BOT_TOKEN```, ```DATABASE_URL```, ```DB_NAME```, ```DB_USER```, ```DB_PASSWORD``` and ```DB_HOST``` must be the same as used for [Paidagogos Bot](https://github.com/Macket/paidagogos_bot)
```DEBUG``` should be **False** in prod
```ADMIN_ID``` is the telegram id of the admin
```PROXY``` is used if Telegram is blocked in your country (also uncomment appropriate code in ***bot.py***)
Then you can start Paidagogos bot with this command:
```
python app.py
```
## DEMO
