mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-24 23:34:44 +08:00
Update README.md (Improve) (#315)
Improve "Run natively on your machine" guide
This commit is contained in:
parent
73bdf2a54d
commit
2b6fb38c5c
1 changed files with 32 additions and 7 deletions
39
README.md
39
README.md
|
@ -77,14 +77,39 @@ Need help with deployment or exclusive features? I offer paid service - contact
|
|||
|
||||
To deploy this bot, follow these steps:
|
||||
|
||||
1. Clone the code from the repository.
|
||||
2. Install FFmpeg.
|
||||
3. Install Python 3.6 or a later version.
|
||||
4. Install Aria2 and add it to the PATH.
|
||||
5. Install the required packages by running `pip3 install -r requirements.txt`.
|
||||
6. Set the environment variables `TOKEN`, `APP_ID`, `APP_HASH`, and any others that you may need.
|
||||
7. Run `python3 ytdl_bot.py`.
|
||||
1. Install bot dependencies
|
||||
* Install Python 3.6 or a later version, FFmpeg.
|
||||
* Aria2 and add it to the PATH.
|
||||
|
||||
2. Clone the code from the repository and cd into it.
|
||||
* ```Bash
|
||||
git clone "https://github.com/tgbot-collection/ytdlbot.git
|
||||
```
|
||||
* ```Bash
|
||||
cd ytdlbot/
|
||||
```
|
||||
3. Creating a virtual environment and installing required modules in Python.
|
||||
* ```Python
|
||||
python -m venv venv
|
||||
```
|
||||
* ```Bash
|
||||
source venv/bin/activate #Linux
|
||||
#or
|
||||
.\venv\Scripts\activate #Windows
|
||||
```
|
||||
* ```Python
|
||||
pip install --upgrade pip
|
||||
```
|
||||
* ```Python
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
4. Set the environment variables `TOKEN`, `APP_ID`, `APP_HASH`, and any others that you may need.
|
||||
* Change values in ytdlbot/config.py or
|
||||
* Use export APP_ID=111 APP_HASH=111 TOKEN=123
|
||||
5. Finally run the bot with
|
||||
* ```Python
|
||||
python ytdl_bot.py
|
||||
```
|
||||
## Docker
|
||||
|
||||
This bot has a simple one-line code and some functions, such as VIP and ping, are disabled.
|
||||
|
|
Loading…
Reference in a new issue