morny-book/command/nbnhhsh.md

77 lines
3.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# /nbnhhsh
> > `text` | <u><i>reply_to(text)</i></u>
>
> 检索文本内 [nbnhhsh] 词条
[nbnhhsh]: https://lab.magiconch.com/nbnhhsh/
**[Nbnhhsh]**,又称 **「能不能好好说话?」**,是一个能够把奇奇怪怪让人看不懂的名称简写转换为它们能让人听得懂的学名全称的东西。
> ### 为什么做这东西?
>
> 社交平台上通过拼音首字母缩写指代特定词句的情况越来越多,为了让更多人能勉强理解这一门另类沟通方式、做了这一个划词转义工具。
>
> -- from [「能不能好好说话?」][nbnhhsh] 官方页面
**Morny**`/nbnhhsh` 命令即是一个在 telegram 中的 [nbnhhsh] 查询工具的移植封装,为了大家能够更方便的使用其来查询短语。
## usage - 使用
<style>
.tq {
color: gray;
font-style: italic;
}
.cmd {
color: chocolate;
}
</style>
**Morny**`/nbnhhsh` 支持通过两种调用方式进行 nbnhhsh 查询。
**其一**是使用 `/nbnhhsh` 命令回复一条消息,就可以查询被回复消息中的 nbnhhsh 词条:
<pre><code class=nohighlight><small class=tq>&gt; <u>Aa for Test</u></small>
这是一个例文ta里面就有一些「nbnhhsh」的简写短语。
<small class=tq>&gt; <u>ANNIe</u></small>
<small class=tq>&gt; in reply to <u>Aa for Test</u></small>
<span class=cmd>/nbnhhsh</span></code></pre>
**其二**是通过 `/nbnhhsh texts...` 在命令后加内容的方式查询,可以查询命令后内容文本中的 nbnhhsh 词条。
<pre><code class=nohighlight><small class=tq>&gt; <u>ANNIe</u></small>
<span class=cmd>/nbnhhsh</span> nbnhhsh # 想要查询的单词,或者这里也可以塞一段话查询一整段话里面的单词。</code></pre>
**Morny** 将会从 official [nbnhhsh] 查询这里面有哪些 nbnhhsh 单词,然后列出它们和它们的释义,回复给 nbnhhsh 查询者。
所给出的回复大概是这个格式的:
```nohighlight
## Result of nbnhhsh query :
[[ ta ]]
* 圣堂刺客
* 他/她/它
* 天啊
[[ nbnhhsh ]]
* 能不能好好说话
```
---
## 你知道吗
- [nbnhhsh] 官方的 api 的设计就是直接传进去一整段文字,然后 api 就可以吐出来这段文字里有什么符合 nbnhhsh 词条的词,然后返回这些词条。
<empty></empty>
- Morny 最后所返回的 `## Result of nbnhhsh query :` 那个标题是可以点击的(显然,它就是一个链接),它指向的就是 nbnhhsh 的官方网页 <https://lab.magiconch.com/nbnhhsh/>
- 其实,最开始是想让这个标题指向 nbnhhsh 官网,然后打开就可以复现这次查询的内容(也就是可以说是带着查询内容的参数)。然而最终似乎 nbnhhsh 官网并没有提供这样的查询链接格式,最终的设计就 fallback 到了单纯往官网页面指向过去好了。
<empty></empty>
- 这大概是第8个解释功能的页面。写到这里就给人感觉写的内容越来越少了。不过本来这些功能都不能说很复杂或许本来就不需要那么多废话来阐述就是了。