Skip to content

PythonistasBR/bot

Repository files navigation

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

About

It's not a bot, it's our bot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages