add /save, sticker style as a css file, add Title in book.xml

4.0
A.C.Sukazyo Eyre 2023-05-21 18:48:32 +08:00
parent 9900909c10
commit 3244443b95
Signed by: Eyre_S
GPG Key ID: C17CE40291207874
9 changed files with 56 additions and 24 deletions

View File

@ -17,6 +17,7 @@
<Separator/> <Separator/>
<Title>Morny 功能</Title>
<Chapter root="command/"> <Chapter root="command/">
<caption>command - 命令</caption> <caption>command - 命令</caption>
<Page id="overview">Overview - 速查表</Page> <Page id="overview">Overview - 速查表</Page>
@ -27,6 +28,7 @@
<Page id="186-ip-whois"><![CDATA[<small>/ip /whois</small>]]></Page> <Page id="186-ip-whois"><![CDATA[<small>/ip /whois</small>]]></Page>
<Page id="encrypt">/encrypt</Page> <Page id="encrypt">/encrypt</Page>
<Page id="info">/info</Page> <Page id="info">/info</Page>
<Page id="save">/save</Page>
<Page id="exit">/exit</Page> <Page id="exit">/exit</Page>
</Chapter> </Chapter>
<Chapter root="inline/"> <Chapter root="inline/">
@ -42,16 +44,18 @@
<Page id="executor/call-me">呼叫 Morny 的主人</Page> <Page id="executor/call-me">呼叫 Morny 的主人</Page>
<Page id="executor/admin-msg-send">controlling: 消息发送器</Page> <Page id="executor/admin-msg-send">controlling: 消息发送器</Page>
</Chapter> </Chapter>
<Page id="trusted">可信成员</Page>
<Chapter> <Chapter>
<caption><![CDATA[<small><s>已遭弃用的功能</s></small>]]></caption> <caption><![CDATA[<small><s>已遭弃用的功能</s></small>]]></caption>
<Page id="sp/kuohuanhuan-need-sleep"><![CDATA[<s>KuoHuanHuan 该睡觉了</s>]]></Page> <Page id="sp/kuohuanhuan-need-sleep"><![CDATA[<s>KuoHuanHuan 该睡觉了</s>]]></Page>
<Page id="command/jrrp">/jrrp</Page> <Page id="command/jrrp">/jrrp</Page>
</Chapter> </Chapter>
<Title>Morny 系统概念</Title>
<Page id="trusted">可信成员</Page>
<Separator/> <Separator/>
<Title>杂项</Title>
<Page id="note-todo">note::本说明书进度,以及待修整的部分</Page> <Page id="note-todo">note::本说明书进度,以及待修整的部分</Page>
<!-- <Separator/> --> <!-- <Separator/> -->

View File

@ -2,15 +2,14 @@
title: "/exit" title: "/exit"
--- ---
<style>
@import "../stickers.css"
</style>
> also known as `/quit` > also known as `/quit`
> also known as `/stop` > also known as `/stop`
<style>
.sticker {
width: 20rem;
}
</style>
<font color=palevioletred> <font color=palevioletred>
**此工具仅限 [可信成员](../trusted) 使用** **此工具仅限 [可信成员](../trusted) 使用**

View File

@ -3,9 +3,7 @@
> **检查是否在线** > **检查是否在线**
<style> <style>
.sticker { @import "../stickers.css"
width: 20rem;
}
</style> </style>
## usage - 用法 ## usage - 用法

View File

@ -106,7 +106,7 @@
</thead> </thead>
<tr> <tr>
<td><b><code>/save</code></b></td> <td><b><a href="./save"><code>/save</code></a></b></td>
<td></td> <td></td>
<td>保存缓存数据到文件(仅<a href="../trusted">可信成员</a></td> <td>保存缓存数据到文件(仅<a href="../trusted">可信成员</a></td>
</tr> </tr>

33
command/save.md Normal file
View File

@ -0,0 +1,33 @@
# /save
> 保存缓存数据到文件(仅[可信成员](../trusted)
<style>
@import "../stickers.css";
</style>
<font color=palevioletred>
**此工具仅限 [可信成员](../trusted) 使用**
这是一个管理类工具,它拥有操作 Morny Cono 的内部 API 的功能并导致服务器资源过载的可能
</font>
这个命令可以让所有的 *需要使用数据持久化的服务功能* 立即和磁盘同步数据。
当保存任务执行成功后,它将会返回贴纸 `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]
```

View File

@ -3,9 +3,7 @@
[主人]: ../main#morny-的主人 [主人]: ../main#morny-的主人
<style> <style>
.sticker { @import "../stickers.css"
width: 20rem;
}
</style> </style>
简单来说,借助这个工具,你可以通过 **Morny** 来向[主人]发送消息:: 简单来说,借助这个工具,你可以通过 **Morny** 来向[主人]发送消息::

11
main.md
View File

@ -1,5 +1,9 @@
# ~~给所有喜欢morny的大家的~~ Morny Coeur 使用手册 # ~~给所有喜欢morny的大家的~~ Morny Coeur 使用手册
<style>
@import "./stickers.css"
</style>
<div align="center" markdown="1"> <div align="center" markdown="1">
@ -32,13 +36,6 @@
--- ---
<style>
.sticker {
width: 20rem;
}
</style>
这是 **[Morny Coeur] / [Morny Cono]** 的**使用手册**。 这是 **[Morny Coeur] / [Morny Cono]** 的**使用手册**。
**Monry** Cono 是一个使用 Morny **Coeur** 作为其核心的 **Telegram 机器人** **Monry** Cono 是一个使用 Morny **Coeur** 作为其核心的 **Telegram 机器人**

View File

@ -10,7 +10,7 @@
<div style="font-family: system-emoji"> <div style="font-family: system-emoji">
🟪🟪🟪⬜🟪🟪🟪🟪🟪⬛️ ⬜🟪 🟪 🟪🟪🟪⬜🟪🟪🟪🟪🟪⬛️ ⬜🟪 🟪🟪
⬜🟩🟩🟩 ⬜🟩🟩🟩
🟧⬜⬜🟧🟧⬜🟧⬜ 🟧⬜⬜🟧🟧⬜🟧⬜
🟦⬜⬜ 🟦⬜⬜
@ -32,7 +32,7 @@
- [x] ~~`/jrrp`~~ - [x] ~~`/jrrp`~~
- ~~`/install`~~ - ~~`/install`~~
- 管理员命令 - 管理员命令
- [ ] `/save` - [x] ~~`/save`~~
- [x] ~~`/exit` <small><code>/stop</code> <code>/quit</code></small>~~ - [x] ~~`/exit` <small><code>/stop</code> <code>/quit</code></small>~~
- 单独功能的额外命令 - 单独功能的额外命令
- [ ] `/r` - [ ] `/r`

3
stickers.css Normal file
View File

@ -0,0 +1,3 @@
.sticker {
width: 20rem;
}