From 4a26177ab90e86bab4af129c2aba32acfcec737a Mon Sep 17 00:00:00 2001 From: passthem Date: Sun, 28 Sep 2025 20:35:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20README=20=E5=85=B3?= =?UTF-8?q?=E4=BA=8E=E8=BF=90=E8=A1=8C=E5=92=8C=E8=87=AA=E5=8A=A8=E9=87=8D?= =?UTF-8?q?=E8=BD=BD=E7=9A=84=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 986f53f..cc68e66 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,13 @@ code . ### 运行 -如果改动了代码,应该先用 `Ctrl+C` 或者根据控制台提示退出,然后再重新启动。 +你可以在 VSCode 的「运行与调试」窗口,启动 `运行 Bot 并调试(自动重载)` 任务来启动 Bot,也可以使用命令行手动启动 Bot: + +```bash +poetry run watchfiles bot.main +``` + +如果你不希望自动重载,只是想运行 Bot,可以直接运行: ```bash poetry run python bot.py