From 608aa93dd17cdac926f2da162144afafcb3f78d3 Mon Sep 17 00:00:00 2001 From: snowy Date: Thu, 29 Feb 2024 01:27:10 +0800 Subject: [PATCH] first commit --- README.md | 22 +++++++++++++++++++++- requirements.txt | 4 +--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 76283169..52d0daf0 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,32 @@ ## 手动安装和部署 -1.安装Git,使用命令`git clone https://gitee.com/snowykami/liteyuki-bot` 克隆项目至本地 +1.安装Git,使用命令`git clone https://github.com/snowykami/LiteyukiBot` 克隆项目至本地 2.切换到轻雪目录,使用`pip install -r r.txt` 3.`python main.py`!启动! +## 一键部署脚本 +### Windows +```bash +chcp 65001 +git clone https://github.com/snowykami/LiteyukiBot +cd LiteyukiBot +pip install -r requirements.txt +echo python main.py > start.bat +echo Install finished! Please run start.bat to start the bot! +``` +### Linux +```bash +git clone https://github.com/snowykami/LiteyukiBot +cd LiteyukiBot +pip install -r requirements.txt +echo python main.py > start.sh +chmod +x start.sh +echo Install finished! Please run start.sh to start the bot! +``` + ## 注意事项 1.尽可能不要去动配置文件,通过与bot交互进行配置即可,若仍然想自定义配置请在`config.yml`中修改 diff --git a/requirements.txt b/requirements.txt index f45a37a8..60bf44e0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1 @@ - -nonebot2[fastapi] -watchdog==2.1.6 \ No newline at end of file +nonebot2[fastapi] \ No newline at end of file