From 486c0966015aed4c512cb032945b68391473fd00 Mon Sep 17 00:00:00 2001 From: StageGuard <45701251+StageGuard@users.noreply.github.com> Date: Mon, 14 Dec 2020 13:53:55 +0800 Subject: [PATCH] Fix document problems Correct description. Remove redundant parentheses. Add missing spaces between Chinese character and English character. --- docs/mirai-ecology.md | 57 ++++++++++--------------------------------- 1 file changed, 13 insertions(+), 44 deletions(-) diff --git a/docs/mirai-ecology.md b/docs/mirai-ecology.md index df3233a88..5df70f9d3 100644 --- a/docs/mirai-ecology.md +++ b/docs/mirai-ecology.md @@ -11,11 +11,11 @@ Mirai是一个免费开源的QQ机器人框架,由于其开源和易拓展的 2. [mirai-console](#mirai-console-mirai-官方的可拓展式qq机器人管理控制台) - [chat-command](#chat-command-mirai-console-的官方的聊天命令插件) - - [mirai-api-http](#mirai-api-http-mirai-console-的官方http-api插件) + - [mirai-api-http](#mirai-api-http-mirai-console-的官方-http-api-插件) - [mirai-native](#mirai-native-与-coolq-对接的一个通道) 3. [mirai-console-loader](#mirai-console-loader-mirai-console-的官方一键启动器) - + @@ -73,13 +73,13 @@ mirai-console 的内部也不是单一的结构,它分为**前端**和**后端 ## [chat-command](https://github.com/project-mirai/chat-command): Mirai Console 的官方的聊天命令插件 -在 mirai-console 的前端中,我们提到可以在前端执行 console 内置和插件提供的**命令**,如果我们想在聊天环境(好友聊天/群聊天/临时会话)执行 console 命令,我们就需要官方提供的 chat-command,并且,console 中的权限管理正是管理群执行权限的。 +在 mirai-console 的前端中,我们提到可以在前端执行 console 内置和插件提供的**命令**,如果我们想在聊天环境(好友聊天/群聊天/临时会话)执行 console 命令,我们就需要官方提供的 chat-command,并且,console 中的权限管理正是管理**聊天环境中用户执行权限**的。 将 chat-command 放入上述关系图: [![](https://mermaid.ink/img/eyJjb2RlIjoiZmxvd2NoYXJ0IExSXG4gICAgY2xhc3NEZWYgY29yZWhpZ2hsaWdodCBmaWxsOiNmOTYsc3Ryb2tlOiMzMzMsc3Ryb2tlLXdpZHRoOjNweDt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7ZcIilcbiAgICAgICAgY2hhdGNvbW1hbmQoXCJjaGF0LWNvbW1hbmQg5o-S5Lu2XCIpOjo6aGlnaGxpZ2h0XG4gICAgZW5kXG4gICAgeW91cm1pcmFpcGx1Z2luIC0tPiBtaXJhaWNvbnNvbGViYWNrZW5kXG4gICAgY2hhdGNvbW1hbmQgLS0-IG1pcmFpY29uc29sZWJhY2tlbmQiLCJtZXJtYWlkIjp7InRoZW1lIjoiZGVmYXVsdCJ9LCJ1cGRhdGVFZGl0b3IiOmZhbHNlfQ) -## [mirai-api-http](https://github.com/mamoe/mirai-api-http): Mirai Console 的官方HTTP API插件 +## [mirai-api-http](https://github.com/mamoe/mirai-api-http): Mirai Console 的官方 HTTP API 插件 在 console 中提到,插件也可以使用 mirai-core-api 提供的基础接口, 而 mirai-api-http 插件就是一个将 mirai-core-api 的所有功能封装为 http 服务的插件,同时也提供了 WebSocket 服务。 @@ -87,11 +87,11 @@ mirai-console 的内部也不是单一的结构,它分为**前端**和**后端 这些社区 SDK 封装了 mirai-api-http 提供的接口,且使用了其他语言的良好特性,使编写QQ机器人程序变得更加容易,高效。 -将 mirai-api-http 和所有社区 SDK 放入上述关系图: +将 mirai-api-http 和大部分官方列举的社区 SDK 放入上述关系图: [![](https://mermaid.ink/img/eyJjb2RlIjoiZmxvd2NoYXJ0IExSXG4gICAgY2xhc3NEZWYgY29yZWhpZ2hsaWdodCBmaWxsOiNmOTYsc3Ryb2tlOiMzMzMsc3Ryb2tlLXdpZHRoOjNweDtcbiAgICBjbGFzc0RlZiBoaWdobGlnaHQgZmlsbDojZjg4LHN0cm9rZTojMzMzLHN0cm9rZS13aWR0aDozcHhcbiAgICBzdWJncmFwaCBtaXJhaSBbXCJNaXJhaSDmoYbmnrZcIl1cbiAgICAgICAgbWlyYWljb3JlYXBpKG1pcmFpLWNvcmUtYXBpKTo6OmNvcmVoaWdobGlnaHRcbiAgICAgICAgbWlyYWljb3JlcXFhbmRyb2lkKFwibWlyYWktY29yZTxici8-K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LS0-IG1pcmFpYXBpaHR0cFxuICAgIGVuZCIsIm1lcm1haWQiOnsidGhlbWUiOiJkZWZhdWx0In0sInVwZGF0ZUVkaXRvciI6ZmFsc2V9) -注:lua-mirai 使用了 [luakt](https://github.com/only52607/luakt) 库实现 Lua 语言和 Kotlin 的直接交互,它是基于 mirai-core-api 的,与 mirai-api-http 没有任何关系(。 +注:lua-mirai 使用了 [luakt](https://github.com/only52607/luakt) 库实现 Lua 语言和 Kotlin 的直接交互,它是基于 mirai-core-api 的,与 mirai-api-http 没有任何关系。 ## [mirai-native](https://github.com/iTXTech/mirai-native): 与 CoolQ 对接的一个通道 @@ -105,15 +105,19 @@ mirai-console 的内部也不是单一的结构,它分为**前端**和**后端 ## [**mirai-console-loader**](https://github.com/iTXTech/mirai-console-loader): Mirai Console 的官方一键启动器 -前面说道我们可以直接在终端运行 mirai-console 的前端 mirai-console-terminal,然而想运行起来 mirai-console-terminal 却不是很容易的事情:你需要下载好 Mirai 官方发布的 mirai-core,mirai-console 和 mirai-console-terminal的 jar 文件,你还需要知道 terminal 前端的入口是 **net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader**,然后你还需要通过一大串指令启动它。 +前面说道我们可以直接在终端运行 mirai-console 的前端 mirai-console-terminal,然而想运行起来 mirai-console-terminal 却不是很容易的事情:你需要下载好 Mirai 官方发布的 mirai-core,mirai-console 和 mirai-console-terminal 的 jar 文件,你还需要知道 terminal 前端的入口是 **net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader**,然后你还需要通过一大串指令启动它。 -``java -cp "上述jar文件路径" net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader`` +```bash +java -cp "上述jar文件路径" net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader +``` 这种复杂的启动方式劝退了许多新手,尤其是未曾听说过 JVM 的新手。 mirai-console-loader 应运而生,它的工作就是简化 console 启动流程,一键帮你下载 jar 文件,自动更新,文件损坏检查...... 你能在手动启动时担心的问题 mirai-console-loader 都帮你想到了!你只需要: -``./mcl`` +```bash +./mcl +``` 即可快速启动 mirai-console 的 terminal 前端。同时 mirai-console-loader 还有一些拓展功能,可以自定义你的启动流程。 @@ -128,38 +132,3 @@ mirai-console-loader 应运而生,它的工作就是简化 console 启动流 以上就是整个 Mirai 生态的概览,如有疏漏或错误,欢迎提出 Issue 修正。 实体关系图采用 [Mermaid](https://github.com/mermaid-js/mermaid) 绘制。 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -