2.7 KiB
title, icon, order, category, tag
| title | icon | order | category | tag | |
|---|---|---|---|---|---|
| Installation | download | 1 | deployment |
|
Installation
Conventional deployment
- Install
GitandPython3.10+environment
# Clone the project locally, --depth=1 to reduce the size of the cloned repository, this project updates depend on Git
git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1
# change the directory to the project root
cd LiteyukiBot
# install the project dependencies
pip install -r requirements.txt
# start bot
python main.py
Tip
Recommended to use
venvto run Liteyuki to avoid dependency conflicts, you can usepython -m venv .venvto create a virtual environment, and then use.venv\Scripts\activateto activate the virtual environment (usesource .venv/bin/activateto activate on Linux)
Use docker
- Install
Docker - Clone project repo
git clone https://github.com/LiteyukiStudio/LiteyukiBot --depth=1 - change directory
cd LiteyukiBot - build image with
docker build -t liteyukibot . - start container
docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot
Tip
For Windows, please use the absolute project directory
/path/to/LiteyukiBotinstead of $(pwd)If you have changed the port number, replace
20216in20216:20216with your port number
Use TRSS Scripts
TRSS_Liteyuki LiteyukiBot manage script, This feature is supported by TRSS and is not an official feature of LiteyukiBot. It is recommended to use Arch Linux.
Device requirements
- Minimum Windows system version:
Windows 10+/Windows Server 2019+ - Linux systems need to support Python 3.10+, with
Ubuntu 20.04+recommended - CPU:
1 vCPUand more(Bot is multi processes, the more cores, the better the performance) - Memory: Without other plugins, the Bot will occupy
300~500MB, including processes likechromiumandnode. The memory occupied by other plugins depends on the specific plugins, and it is recommended to have more than1GB. - Storage: At least
1GBof space is required.
Warning
If there are multiple environments on the device, please use
path/to/python -m pip install -r requirements.txtto install dependencies, wherepath/to/pythonis the path to your Python executable.
Warning
The update feature of Liteyuki depends on Git. If you have not installed Git and directly download the source code to run, you will not be able to use the update feature.