Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.35 KB

self-hosted.md

File metadata and controls

49 lines (35 loc) · 1.35 KB

Instructions for Ubuntu/Debian (self-hosted):

  1. Generate the .env file from the template
cp .env.example .env
  1. open the .env file with any text editor (e.g nano)
nano .env
  1. change required values with your respective ones (at least one server info should be added).
BOT_API_TOKEN = YOUR_BOT_API_TOKEN                      **required**
CHAT_ID = YOUR_DESIRED_CHAT_ID                          **required**

SERVER0_API = http://example.data.com/Path/panel/       **required**
SERVER0_USERNAME = server0_username                     **required**
SERVER0_PASSWORD = server0_password                     **required**
SERVER0_CAPTION = server0_caption                       *optional*

SERVER1_API = http://example1.notIranian.shop/panel/    *optional*
SERVER1_USERNAME = server1_username                     *optional*
SERVER1_PASSWORD = server1_username                     *optional*
SERVER1_CAPTION = server1_caption                       *optional*

SERVER2_API = http://optionalSecond.heaven.me/panel/    *optional*
...
...
...
  1. install the requirements
pip install -r requirements.txt
  1. run the application
python3 main.py

or set a cronjob to run it periodically, tutorial for setting cronjob here.