add /exit and update book std.
This commit is contained in:
parent
8026a49ed6
commit
fc4a5dc408
15
book.xml
15
book.xml
@ -23,10 +23,11 @@
|
||||
<Page id="on">/o</Page>
|
||||
<Page id="hello"><![CDATA[/hello /hi <small>/start</small>]]></Page>
|
||||
<Page id="user">/user</Page>
|
||||
<Page id="nbnhhsh">/nbnhhsh <small>能不能好好说话?</small></Page>
|
||||
<Page id="186-ip-whois"><small>/ip /whois</small></Page>
|
||||
<Page id="nbnhhsh"><![CDATA[/nbnhhsh <small>能不能好好说话?</small>]]></Page>
|
||||
<Page id="186-ip-whois"><![CDATA[<small>/ip /whois</small>]]></Page>
|
||||
<Page id="encrypt">/encrypt</Page>
|
||||
<Page id="info">/info</Page>
|
||||
<Page id="exit">/exit</Page>
|
||||
</Chapter>
|
||||
<Chapter root="inline/">
|
||||
<caption>inline - 内联查询</caption>
|
||||
@ -51,12 +52,12 @@
|
||||
|
||||
<Page id="note-todo">note::本说明书进度,以及待修整的部分</Page>
|
||||
|
||||
<Separator/>
|
||||
<!-- <Separator/> -->
|
||||
|
||||
<Chapter>
|
||||
<caption><![CDATA[<small>资料库</small>]]></caption>
|
||||
<Page id="command/encrypt-example">command/encrypt-example.png</Page>
|
||||
</Chapter>
|
||||
<!-- <Chapter>-->
|
||||
<!-- <caption><![CDATA[<small>资料库</small>]]></caption>-->
|
||||
<!-- <Page id="command/encrypt-example">command/encrypt-example.png</Page>-->
|
||||
<!-- </Chapter>-->
|
||||
|
||||
</contents>
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
# command/encrypt-example.png
|
||||
---
|
||||
title: command/encrypt-example.png
|
||||
---
|
||||
|
||||
![an example shows how to encrypt a text message](./encrypt-exapmle.png)
|
||||
<small>an example shows how to encrypt a text message</small>
|
||||
|
52
command/exit.md
Normal file
52
command/exit.md
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
title: "/exit"
|
||||
---
|
||||
|
||||
> also known as `/quit`
|
||||
> also known as `/stop`
|
||||
|
||||
<style>
|
||||
.sticker {
|
||||
width: 20rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<font color=palevioletred>
|
||||
|
||||
**此工具仅限 [可信成员](../trusted) 使用**
|
||||
这是一个管理类工具,它拥有操作 Morny Cono 底层并可以破坏其运行稳定性的能力
|
||||
|
||||
</font>
|
||||
|
||||
这个命令可以让你关闭正在运行的这个 Morny Cono。
|
||||
|
||||
## usage
|
||||
|
||||
执行 `/exit`命令,然后你就会看到下面的贴纸:
|
||||
|
||||
{.sticker}
|
||||
![ID_EXIT](https://stickers.sukazyo.cc/sticker/CAACAgEAAxkBAAMoYYYWt8UjvP0N405SAyvg2SQZmokAAkMiAAJ4_MYFw6yZLu06b-MiBA.png)
|
||||
|
||||
这样子,Morny Cono 就已收到关闭指令并已退出运行。
|
||||
|
||||
### 权限不足
|
||||
|
||||
如果权限不足的话,你将会看到下面的贴纸:
|
||||
|
||||
{.sticker}
|
||||
![ID_403](https://stickers.sukazyo.cc/sticker/CAACAgEAAxkBAAMqYYYa_7hpXH6hMOYMX4Nh8AVYd74AAnQnAAJ4_MYFRdmmsQKLDZgiBA.png)
|
||||
|
||||
在这种情况下,Morny 将<small>显然是</small>不会遵循你的关闭指令。
|
||||
|
||||
## Log 记录
|
||||
|
||||
出于退出命令是影响 Morny 运行的重要指令,所以,在设计上,不论是成功退出还是由于权限不足被拒绝,每次执行退出指令都将会产生一行等级为 `INFO` 的 log。log 将会记录下你的 Telegram userid(如果没有的话则是用户姓名全名)和 Telegram 用户内部 uid。<small>所以不要乱玩哦<s>[@Eyre_S] 在看着你</s></small>
|
||||
|
||||
[@Eyre_S]: https://t.me/Eyre_S
|
||||
|
||||
像是下面这样:
|
||||
|
||||
```log
|
||||
[INFO] 403 exited tag from user 🍓 | 抱抱 呜呜呜 [341632447]
|
||||
[INFO] Morny exited by user @Eyre_S[793274677]
|
||||
```
|
@ -112,7 +112,7 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b><code>/exit</code></b></td>
|
||||
<td><b><a href="./exit"><code>/exit</code></a></b></td>
|
||||
<td></td>
|
||||
<td>关闭 Bot(仅<a href="../trusted">可信成员</a>)</td>
|
||||
</tr>
|
||||
@ -192,11 +192,11 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b><code>/quit</code></b></td>
|
||||
<td><b><a href="./exit"><code>/quit</code></a></b></td>
|
||||
<td rowspan=2>仅仅是<s>人性化设计的</s> <code>/exit</code> 的匿名别名。</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>/stop</code></b></td>
|
||||
<td><b><a href="./exit"><code>/stop</code></a></b></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
<div style="font-family: system-emoji">
|
||||
|
||||
🟪🟪🟪⬜🟪🟪🟪🟪⬜⬛️ ⬜⬜ ⬜⬜
|
||||
🟪🟪🟪⬜🟪🟪🟪🟪⬜⬛️ ⬜🟪 ⬜⬜
|
||||
⬜⬜🟩🟩
|
||||
🟧⬜⬜🟧🟧⬜🟧⬜
|
||||
🟦⬜⬜
|
||||
@ -33,7 +33,7 @@
|
||||
- ~~`/install`~~
|
||||
- 管理员命令
|
||||
- [ ] `/save`
|
||||
- [ ] `/exit` <small><code>/stop</code> <code>/quit</code></small>
|
||||
- [x] ~~`/exit` <small><code>/stop</code> <code>/quit</code></small>~~
|
||||
- 单独功能的额外命令
|
||||
- [ ] `/r`
|
||||
- [ ] `/test`
|
||||
|
Loading…
Reference in New Issue
Block a user