From 3244443b957d8a23df8af3ad17d9269eea2c6b3d Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Sun, 21 May 2023 18:48:32 +0800 Subject: [PATCH] add /save, sticker style as a css file, add Title in book.xml --- book.xml | 8 ++++++-- command/exit.md | 11 +++++------ command/on.md | 4 +--- command/overview.md | 2 +- command/save.md | 33 +++++++++++++++++++++++++++++++++ executor/call-me.md | 4 +--- main.md | 11 ++++------- note-todo.md | 4 ++-- stickers.css | 3 +++ 9 files changed, 56 insertions(+), 24 deletions(-) create mode 100644 command/save.md create mode 100644 stickers.css diff --git a/book.xml b/book.xml index c79357c..507933f 100644 --- a/book.xml +++ b/book.xml @@ -17,6 +17,7 @@ + Morny 功能 command - 命令 Overview - 速查表 @@ -27,6 +28,7 @@ /ip /whois]]> /encrypt /info + /save /exit @@ -42,16 +44,18 @@ 呼叫 Morny 的主人 controlling: 消息发送器 - 可信成员 - 已遭弃用的功能]]> KuoHuanHuan 该睡觉了]]> /jrrp + Morny 系统概念 + 可信成员 + + 杂项 note::本说明书进度,以及待修整的部分 diff --git a/command/exit.md b/command/exit.md index 6ec64fa..2aaa6ed 100644 --- a/command/exit.md +++ b/command/exit.md @@ -2,15 +2,14 @@ title: "/exit" --- + + + > also known as `/quit` > also known as `/stop` - - **此工具仅限 [可信成员](../trusted) 使用** diff --git a/command/on.md b/command/on.md index e364c8c..8893150 100644 --- a/command/on.md +++ b/command/on.md @@ -3,9 +3,7 @@ > **检查是否在线** ## usage - 用法 diff --git a/command/overview.md b/command/overview.md index 489be9a..adecffb 100644 --- a/command/overview.md +++ b/command/overview.md @@ -106,7 +106,7 @@ -/save +/save 保存缓存数据到文件(仅可信成员) diff --git a/command/save.md b/command/save.md new file mode 100644 index 0000000..9452cb2 --- /dev/null +++ b/command/save.md @@ -0,0 +1,33 @@ +# /save + +> 保存缓存数据到文件(仅[可信成员](../trusted)) + + + + + +**此工具仅限 [可信成员](../trusted) 使用** +这是一个管理类工具,它拥有操作 Morny Cono 的内部 API 的功能并导致服务器资源过载的可能 + + + +这个命令可以让所有的 *需要使用数据持久化的服务功能* 立即和磁盘同步数据。 + +当保存任务执行成功后,它将会返回贴纸 `ID_SAVED`: + +{.sticker} +![morny sticker ID_SAVED](https://stickers.sukazyo.cc/sticker/CAACAgEAAx0CSQh32gABBExuYdB_G0srfhQldRWkBYxWzCOv4-IAApooAAJ4_MYFcjuNZszfQcQjBA.png) + +当失败时命令将会不反回任何东西。 + +不过目前 Morny 并没有任何的服务使用到了数据持久化功能。所以,这个命令可以被认为是除了返回一个贴纸以外没有用途的。 + +## Log 记录 + +作为一个管理类命令,它也拥有和 [`/exit`](./exit) 差不多的 Log 记录。不过不同的是 **`/save`** 只会在当用户没有权限时记录一条 log,当用户有权限执行时将不会特定的对这个操作记录 log: + +```log +[INFO] 403 call save tag from user qwq [676559089] +``` diff --git a/executor/call-me.md b/executor/call-me.md index ef13472..750f258 100644 --- a/executor/call-me.md +++ b/executor/call-me.md @@ -3,9 +3,7 @@ [主人]: ../main#morny-的主人 简单来说,借助这个工具,你可以通过 **Morny** 来向[主人]发送消息:: diff --git a/main.md b/main.md index a0dd784..4235ec6 100644 --- a/main.md +++ b/main.md @@ -1,5 +1,9 @@ # ~~给所有喜欢morny的大家的~~ Morny Coeur 使用手册 + +
@@ -32,13 +36,6 @@ --- - - - 这是 **[Morny Coeur] / [Morny Cono]** 的**使用手册**。 **Monry** Cono 是一个使用 Morny **Coeur** 作为其核心的 **Telegram 机器人**。 diff --git a/note-todo.md b/note-todo.md index ead6ce6..f97d621 100644 --- a/note-todo.md +++ b/note-todo.md @@ -10,7 +10,7 @@
-🟪🟪🟪⬜🟪🟪🟪🟪🟪⬛️ ⬜🟪 ⬜🟪 +🟪🟪🟪⬜🟪🟪🟪🟪🟪⬛️ ⬜🟪 🟪🟪 ⬜🟩🟩🟩 🟧⬜⬜🟧🟧⬜🟧⬜ 🟦⬜⬜ @@ -32,7 +32,7 @@ - [x] ~~`/jrrp`~~ - ~~`/install`~~ - 管理员命令 - - [ ] `/save` + - [x] ~~`/save`~~ - [x] ~~`/exit` /stop /quit~~ - 单独功能的额外命令 - [ ] `/r` diff --git a/stickers.css b/stickers.css new file mode 100644 index 0000000..77068b9 --- /dev/null +++ b/stickers.css @@ -0,0 +1,3 @@ +.sticker { + width: 20rem; +}