Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 964 Bytes

README.md

File metadata and controls

52 lines (34 loc) · 964 Bytes

PyDeckard

Telegram Bot made in Python to automate different tasks of Python Canarias.

RickDeckard

"I've seen things you people wouldn't believe"
In honour of Rick Deckard from Blade Runner.

Installation

Create a virtualenv for Python3 and install dependencies. In this example we are using pyenv:

$ pyenv virtualenv 3.12.4 pydeckard
$ pyenv activate pydeckard
$ pip install -r requirements.txt

A developer needs to install a few more packages:

$ pip install -r dev-requirements.txt

Next step is to set your bot token for development:

$ echo 'TELEGRAM_BOT_TOKEN = "<token of your dev bot>"' > .env

Now you can launch the bot with:

$ python bot.py

You can use the flag --verbose (or `-v') to get more information in rhe console:

$ python bot.py --verbose

Tests

Use pytest:

$ python -m pytest