From 57d1343a8efb03adbe1a6b287eaf1ead5fc934c7 Mon Sep 17 00:00:00 2001 From: sheep2007 <122354009+sheep2007@users.noreply.github.com> Date: Thu, 27 Jul 2023 19:30:11 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=93=9D=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/develop/forward/prepare.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/website/develop/forward/prepare.md b/website/develop/forward/prepare.md index 2fa0039..2d2f06a 100644 --- a/website/develop/forward/prepare.md +++ b/website/develop/forward/prepare.md @@ -60,11 +60,20 @@ Bot管理员是最高权限, 拥有 Bot协助者 的权限,所以我们便 ::: 为了让 Sora 稳定运行,我们使用了虚拟环境([Poetry](https://python-poetry.org/)) ```bash +# 安装 poetry +pip install poetry +``` +```bash # 安装 python 依赖 poetry install # 安装 pre-commit git hook pre-commit install ``` +使用 poetry 指令之前请先 cd 到 bot 目录下 +```bash +# 以下仅为实例,请自行修改路径 +cd C:\Users\Administrator\Desktop\SoraBot +``` ## 本体准备 From 19841104968d6d30660b28ee24eea1766aed89fd Mon Sep 17 00:00:00 2001 From: sheep2007 <122354009+sheep2007@users.noreply.github.com> Date: Thu, 27 Jul 2023 19:56:25 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=93=9D=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/develop/forward/prepare.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/develop/forward/prepare.md b/website/develop/forward/prepare.md index 2d2f06a..e82279d 100644 --- a/website/develop/forward/prepare.md +++ b/website/develop/forward/prepare.md @@ -60,8 +60,10 @@ Bot管理员是最高权限, 拥有 Bot协助者 的权限,所以我们便 ::: 为了让 Sora 稳定运行,我们使用了虚拟环境([Poetry](https://python-poetry.org/)) ```bash -# 安装 poetry +# 使用 pip 安装 poetry pip install poetry +# 在隔离环境中安装 poetry +pipx install poetry ``` ```bash # 安装 python 依赖 From c0334eaac55c782051c843660f3c88a012e0158d Mon Sep 17 00:00:00 2001 From: sheep2007 <122354009+sheep2007@users.noreply.github.com> Date: Fri, 28 Jul 2023 16:34:00 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=93=9D=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/develop/forward/prepare.md | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/website/develop/forward/prepare.md b/website/develop/forward/prepare.md index e82279d..4953a43 100644 --- a/website/develop/forward/prepare.md +++ b/website/develop/forward/prepare.md @@ -60,22 +60,15 @@ Bot管理员是最高权限, 拥有 Bot协助者 的权限,所以我们便 ::: 为了让 Sora 稳定运行,我们使用了虚拟环境([Poetry](https://python-poetry.org/)) ```bash -# 使用 pip 安装 poetry -pip install poetry -# 在隔离环境中安装 poetry +# 安装 poetry 虚拟环境 pipx install poetry -``` -```bash +# 进入虚拟环境 +poetry shell # 安装 python 依赖 poetry install -# 安装 pre-commit git hook +# 安装 pre-commit git hool pre-commit install ``` -使用 poetry 指令之前请先 cd 到 bot 目录下 -```bash -# 以下仅为实例,请自行修改路径 -cd C:\Users\Administrator\Desktop\SoraBot -``` ## 本体准备 From 0d7b9db5cd909d97a6c6748811e159af45a5b142 Mon Sep 17 00:00:00 2001 From: sheep2007 <122354009+sheep2007@users.noreply.github.com> Date: Fri, 28 Jul 2023 16:46:14 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=93=9D=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/develop/forward/prepare.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/develop/forward/prepare.md b/website/develop/forward/prepare.md index 4953a43..25b8a70 100644 --- a/website/develop/forward/prepare.md +++ b/website/develop/forward/prepare.md @@ -66,7 +66,7 @@ pipx install poetry poetry shell # 安装 python 依赖 poetry install -# 安装 pre-commit git hool +# 安装 pre-commit git hook pre-commit install ```