forked from noctisynth/dicer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
137 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
--- | ||
prev: ../overview/README.md | ||
next: ./installation.md | ||
--- | ||
|
||
# 快速开始 | ||
|
||
Noctisynth 注重于自由与开放,任何人都可以快速的部署 DicerGirl,即便你可能车卡的时候没有点计算机使用。 | ||
|
||
在[安装](./installation.md)中,我们详细的阐述了如何从零开始搭建一个属于你的骰娘。 | ||
|
||
如果你已经有了一个 DicerGirl 安装,或者你非常熟悉 DicerGirl 的上层框架 Nonebot2,那么你可以直接移步[使用](./usage.md) | ||
如果你已经有了一个 DicerGirl 安装,或者你非常熟悉 DicerGirl 的上层框架 Nonebot2,那么你可以直接移步[使用](./usage.md)。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
prev: ./deployment.md | ||
next: ./using-dicergirl.md | ||
--- | ||
# 部署 | ||
|
||
在进行部署之前,请确保你已经正确安装`DicerGirl`,否则请先移步[安装](./installation.md)。 | ||
|
||
## 使用`nb-cli`启动 | ||
|
||
请在正确安装了`DicerGirl`的`Nonebot2`项目文件夹处执行指令: | ||
|
||
```bash | ||
nb run --reload --reload-delay 2 | ||
``` | ||
|
||
我们使用`nb-cli`启动,其中`--reload`与`--reload-delay`允许在`DicerGirl`插件增删或版本更新后自动重启服务并重新挂载规则包。然而,在生产环境下,热重载功能可能同样会为你的服务器增加一些未知的问题。如果你希望规避它,请使用以下指令替代: | ||
|
||
```bash | ||
nb run | ||
``` | ||
|
||
在不使用`--reload`参数的情况下,`DicerGirl`的热更新无法正常使用,这意味着在插件增删后你仍然需要启动`DicerGirl`来使你的更改生效,所以我们依然建议你采用热重载。 | ||
|
||
如果你需要更多对`nb-cli`的支持,请移步[Nonebot CLI](https://cli.nonebot.dev/)。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# 使用 DicerGirl | ||
|
||
如果你已经配置好`DicerGirl`,那么你可以开始使用了。 | ||
|
||
你可以尝试发送指令: | ||
|
||
::: tip | ||
如果你使用 QQ 适配器(QQ官方协议)那么你需要在发送消息前`@机器人`并发送`/bot`作为替代,并且注意该`@机器人`字样不能是复制粘贴的。 | ||
::: | ||
|
||
```bash | ||
.bot | ||
``` | ||
|
||
如果你收到了机器人的回复: | ||
|
||
```plain-text | ||
Noctisynth DicerGirl 版本 3.5.2 [Python 3.12.0 For Nonebot2 2.1.2] | ||
此项目以 Apache-2.0 协议开源. | ||
欢迎使用 Noctisynth DicerGirl, 使用`.help 指令`查看指令帮助. | ||
``` | ||
|
||
那么这意味着你的骰娘已经被正确部署。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters