mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-10-26 08:46:23 +00:00
2.0 KiB
2.0 KiB
title, icon, order, category, tag
| title | icon | order | category | tag | |
|---|---|---|---|---|---|
| 安装 | download | 1 | 使用指南 |
|
开始安装
常规方法
- 安装
Git和Python3.10+环境 - 克隆项目
git clone https://github.com/snowykami/LiteyukiBot - 进入轻雪目录
cd LiteyukiBot - 安装依赖
pip install -r requirements.txt - 启动
python main.py
使用Docker(测试中)
- 安装
Docker - 克隆项目
git clone https://github.com/snowykami/LiteyukiBot - 进入轻雪目录
cd LiteyukiBot - 构建镜像
docker build -t liteyukibot . - 启动容器
docker run -p 20216:20216 -v $(pwd):/liteyukibot -v $(pwd)/.cache:/root/.cache liteyukibot
Tip
Windows请使用项目绝对目录
/path/to/LiteyukiBot代替$(pwd)
若你修改了端口号请将20216:20216中的20216替换为你的端口号
设备要求
- Windows系统版本最低
Windows10+/Windows Server 2019+ - Linux系统要支持Python3.10+,推荐
Ubuntu 20.04+(别用你那b CentOS) - CPU: 至少
1vCPU - 内存: Bot无其他插件会占用
200~300MB,其他插件占用视具体插件而定,建议1GB以上 - 硬盘: 至少
1GB空间
Warning
如果设备上有多个环境,请使用
path/to/python -m pip install -r requirements.txt来安装依赖,path/to/python为你的Python可执行文件路径
Tip
推荐使用虚拟环境来运行轻雪,以避免依赖冲突,你可以使用
python -m venv venv来创建虚拟环境,然后使用venv\Scripts\activate来激活虚拟环境
Warning
轻雪的更新功能依赖Git,如果你没有安装Git,你将无法使用更新功能