Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 1.58 KB

README.md

File metadata and controls

53 lines (41 loc) · 1.58 KB

Autonomia Bot

Build Status codecov Maintainability Code style: black License: MIT

Setup bot

cp env_sample .env

Step 1

Get n Telegram API Token with the Bot father

Configure the TELEGRAM_API_TOKEN

Step 2

Install https://ngrok.com/

Run ngrok

ngrok http 5000

Configure WEBHOOK_DOMAIN with the given domain from ngrok

Step 3

Install the dependencies and run the Autonomia Bot

make install-dev
make run

Useful commands

Usage: make command
clean                          Clean all compiled python code
coverage                       Run test and create HTML coverage report
fmt                            Format code using iSort and Black
install-dev                    Install all dependencies
install                        Install only prod dependencies
lint                           Run flake8
run                            Run bot using flask as server
test                           Run pytest
update_webhook                 Update telegram webhook config from settings

License

MIT