add /save, sticker style as a css file, add Title in book.xml
This commit is contained in:
parent
9900909c10
commit
3244443b95
8
book.xml
8
book.xml
@ -17,6 +17,7 @@
|
||||
|
||||
<Separator/>
|
||||
|
||||
<Title>Morny 功能</Title>
|
||||
<Chapter root="command/">
|
||||
<caption>command - 命令</caption>
|
||||
<Page id="overview">Overview - 速查表</Page>
|
||||
@ -27,6 +28,7 @@
|
||||
<Page id="186-ip-whois"><![CDATA[<small>/ip /whois</small>]]></Page>
|
||||
<Page id="encrypt">/encrypt</Page>
|
||||
<Page id="info">/info</Page>
|
||||
<Page id="save">/save</Page>
|
||||
<Page id="exit">/exit</Page>
|
||||
</Chapter>
|
||||
<Chapter root="inline/">
|
||||
@ -42,16 +44,18 @@
|
||||
<Page id="executor/call-me">呼叫 Morny 的主人</Page>
|
||||
<Page id="executor/admin-msg-send">controlling: 消息发送器</Page>
|
||||
</Chapter>
|
||||
<Page id="trusted">可信成员</Page>
|
||||
|
||||
<Chapter>
|
||||
<caption><![CDATA[<small><s>已遭弃用的功能</s></small>]]></caption>
|
||||
<Page id="sp/kuohuanhuan-need-sleep"><![CDATA[<s>KuoHuanHuan 该睡觉了</s>]]></Page>
|
||||
<Page id="command/jrrp">/jrrp</Page>
|
||||
</Chapter>
|
||||
|
||||
<Title>Morny 系统概念</Title>
|
||||
<Page id="trusted">可信成员</Page>
|
||||
|
||||
<Separator/>
|
||||
|
||||
<Title>杂项</Title>
|
||||
<Page id="note-todo">note::本说明书进度,以及待修整的部分</Page>
|
||||
|
||||
<!-- <Separator/> -->
|
||||
|
@ -2,15 +2,14 @@
|
||||
title: "/exit"
|
||||
---
|
||||
|
||||
<style>
|
||||
@import "../stickers.css"
|
||||
</style>
|
||||
|
||||
|
||||
> also known as `/quit`
|
||||
> also known as `/stop`
|
||||
|
||||
<style>
|
||||
.sticker {
|
||||
width: 20rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<font color=palevioletred>
|
||||
|
||||
**此工具仅限 [可信成员](../trusted) 使用**
|
||||
|
@ -3,9 +3,7 @@
|
||||
> **检查是否在线**
|
||||
|
||||
<style>
|
||||
.sticker {
|
||||
width: 20rem;
|
||||
}
|
||||
@import "../stickers.css"
|
||||
</style>
|
||||
|
||||
## usage - 用法
|
||||
|
@ -106,7 +106,7 @@
|
||||
</thead>
|
||||
|
||||
<tr>
|
||||
<td><b><code>/save</code></b></td>
|
||||
<td><b><a href="./save"><code>/save</code></a></b></td>
|
||||
<td></td>
|
||||
<td>保存缓存数据到文件(仅<a href="../trusted">可信成员</a>)</td>
|
||||
</tr>
|
||||
|
33
command/save.md
Normal file
33
command/save.md
Normal 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]
|
||||
```
|
@ -3,9 +3,7 @@
|
||||
[主人]: ../main#morny-的主人
|
||||
|
||||
<style>
|
||||
.sticker {
|
||||
width: 20rem;
|
||||
}
|
||||
@import "../stickers.css"
|
||||
</style>
|
||||
|
||||
简单来说,借助这个工具,你可以通过 **Morny** 来向[主人]发送消息::
|
||||
|
11
main.md
11
main.md
@ -1,5 +1,9 @@
|
||||
# ~~给所有喜欢morny的大家的~~ Morny Coeur 使用手册
|
||||
|
||||
<style>
|
||||
@import "./stickers.css"
|
||||
</style>
|
||||
|
||||
|
||||
<div align="center" markdown="1">
|
||||
|
||||
@ -32,13 +36,6 @@
|
||||
|
||||
---
|
||||
|
||||
<style>
|
||||
.sticker {
|
||||
width: 20rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
这是 **[Morny Coeur] / [Morny Cono]** 的**使用手册**。
|
||||
|
||||
**Monry** Cono 是一个使用 Morny **Coeur** 作为其核心的 **Telegram 机器人**。
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<div style="font-family: system-emoji">
|
||||
|
||||
🟪🟪🟪⬜🟪🟪🟪🟪🟪⬛️ ⬜🟪 ⬜🟪
|
||||
🟪🟪🟪⬜🟪🟪🟪🟪🟪⬛️ ⬜🟪 🟪🟪
|
||||
⬜🟩🟩🟩
|
||||
🟧⬜⬜🟧🟧⬜🟧⬜
|
||||
🟦⬜⬜
|
||||
@ -32,7 +32,7 @@
|
||||
- [x] ~~`/jrrp`~~
|
||||
- ~~`/install`~~
|
||||
- 管理员命令
|
||||
- [ ] `/save`
|
||||
- [x] ~~`/save`~~
|
||||
- [x] ~~`/exit` <small><code>/stop</code> <code>/quit</code></small>~~
|
||||
- 单独功能的额外命令
|
||||
- [ ] `/r`
|
||||
|
3
stickers.css
Normal file
3
stickers.css
Normal file
@ -0,0 +1,3 @@
|
||||
.sticker {
|
||||
width: 20rem;
|
||||
}
|
Loading…
Reference in New Issue
Block a user