Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 596 Bytes

virtualenv-installation.md

File metadata and controls

32 lines (24 loc) · 596 Bytes

Installing the bot into Python Virtual Environment

Clone this repository:

git clone https://github.com/xvitaly/ecasbot.git ecasbot

Get API token from @BotFather;

Copy configuration file config/ecasbot.json to /etc/ecasbot/ecasbot.json. You can edit it in any text editor;

Create a new Python Virtual Environment:

cd ecasbot
python3 -m venv env

Activate Virtual Environment:

source env/bin/activate

Install bot using Python 3 in VENV:


pip3 install .

Run installed bot with defined API key:

APIKEY=API_KEY ecasbot