Skip to content

Commit

Permalink
docs(avilla): refer launart, remove indep launart doc
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyElaina committed Jul 26, 2023
1 parent 54b7ac6 commit 80cf8a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/avilla/NAV.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
- [图片元素 Picture](basic/hello-avilla/element-picture.md)
- [Notice / NoticeAll](basic/hello-avilla/element-notice.md)
- [资源对象 Resource](basic/hello-avilla/resource-basic.md)
- [启动应用](basic/hello-avilla/launch-app.md)
- [扩展:使用 Filter](basic/hello-avilla/filter-basic.md)
- [基础事件](basic/event-basic.md)
- 消息 (Message)
Expand Down
Empty file.
10 changes: 9 additions & 1 deletion docs/avilla/basic/installation/minimum.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ avilla = Avilla(broadcast, launart, [ConsoleProtocol()])
async def on_message_received(cx: Context, event: MessageReceived):
await cx.scene.send_message("Hello, Avilla!")

launart.launch_blocking(loop=broadcast.loop)
launart.launch_blocking(loop=broadcast.loop) # 启动应用
```

当你启动应用,你理应会在控制台发现以下界面:
Expand All @@ -32,6 +32,14 @@ launart.launch_blocking(loop=broadcast.loop)

可别小瞧了这段代码,基础章节,甚至进阶篇章中的大部分都以这段为基板进行不同程度的扩展,这也是你会碰到的最常见的用户界面。

!!! note
Avilla 由 Launart 与 Graia Amnesia 负责应用实例生命周期的管理,
上方代码示例中最后一行即是启动 Launart 的主进程。

Launart 具有强大的功能,你可以在以下文档中获取更多信息:

- [Launart](/other/launart/)

## 接下来做什么

接下来,你可以尝试 [配置其他协议端](/avilla/other/deploy-protocols/)
Expand Down

0 comments on commit 80cf8a9

Please sign in to comment.