Skip to content

Commit 3c339e7

Browse files
committed
更新了帮助文档
1 parent 3b105f7 commit 3c339e7

File tree

7 files changed

+81
-3
lines changed

7 files changed

+81
-3
lines changed

manual/index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<section>
22
<h2>关于</h2>
33
<p>
4-
<b>nana机器人</b>是华中农业大学日语文化交流协会创造的一只具有查询天气、订阅新闻、运行代码、智能聊天等功能的 QQ 机器人。
4+
<b>nana机器人</b>是华中农业大学日语文化交流协会创造的一只具有查询天气、订阅新闻、以图找番、智能聊天等功能的 QQ 机器人。
55
</p>
66
</section>
77

@@ -42,6 +42,8 @@ <h2>功能列表</h2>
4242
<a href="亲戚关系计算器.html" target="_blank">亲戚关系计算器</a> <span class="author">by Zerone</span><br>
4343
涩图 <span class="author">by sdy623</span><br>
4444
消息过滤 <span class="author">by sdy623</span><br>
45+
以图找番 <span class="author">by sdy623</span><br>
46+
<style>a{TEXT-DECORATION:none}</style>
4547
</p>
4648
</section>
4749

manual/screenshots/index.png

7.42 KB
Loading
108 KB
Loading

manual/screenshots/以图找番.png

434 KB
Loading

manual/screenshots/随机.png

22.3 KB
Loading

manual/以图找番.html

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<h1>以图找番</h1>
2+
3+
<section>
4+
<h2>说明</h2>
5+
<p>
6+
本功能用于以图片搜索动漫名称。感谢 trace.moe 提供搜索 API。
7+
</p>
8+
</section>
9+
10+
<section>
11+
<h2>示例</h2>
12+
<div class="bubble-wrapper right">
13+
<div class="bubble">
14+
<p>
15+
以图找番
16+
</p>
17+
</div>
18+
</div>
19+
<div class="bubble-wrapper left">
20+
<div class="bubble">
21+
<p>
22+
请发送一张图片<br>
23+
</p>
24+
</div>
25+
</div>
26+
<div class="bubble-wrapper right">
27+
<div class="bubble">
28+
<p>
29+
<img src="screenshots/yitusoufan_test.jpg" height="216" width="384"/>
30+
</p>
31+
</div>
32+
</div>
33+
<div class="bubble-wrapper left">
34+
<div class="bubble">
35+
<p>
36+
开始以图搜番 <br>
37+
(如搜索时间过长或无反应则为图片格式有问题)<br>
38+
</p>
39+
</div>
40+
</div>
41+
<div class="bubble-wrapper left">
42+
<div class="bubble">
43+
<p>
44+
<div class="bubble-wrapper left">
45+
<div class="bubble">
46+
<p>
47+
根据所提供的图片按照相似度找到1个结果:<br>
48+
——————————<br>
49+
(1)<br>
50+
相似度:183.30%<br>
51+
动漫名:《No Game No Life<br>
52+
时间点:第7集 12分51秒处<br>
53+
</p>
54+
</div>
55+
</div>
56+
</p>
57+
</div>
58+
</div>
59+
</section>
60+
61+
<section class="bg-color-1">
62+
<h2>格式</h2>
63+
<p>
64+
搜索番剧 番剧关键词
65+
</p>
66+
</section>
67+
68+
<section class="bg-color-2">
69+
<h2>命令别名</h2>
70+
<p>
71+
以图搜番, anime_search, 用图找番, 以图找番, 搜番, 搜动漫
72+
</p>
73+
</section>
74+
75+
<link rel="stylesheet" href="css/style.css">
76+
<script src="js/genpage.js"></script>

nana/plugins/animeSearch.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
KEYWORDS=['搜番','搜动漫']
1111

12-
__plugin_name__ = "anime_search"
12+
__plugin_name__ = "以图搜番"
1313

1414
async def get_bytes(url, headers = None):
1515
async with ClientSession() as asyncSession:
@@ -59,7 +59,7 @@ def toSimpleString(str):
5959
return "".join(output_str_list)
6060

6161

62-
@on_command('anime_search', aliases = ['以图搜番',*KEYWORDS], only_to_me = False)
62+
@on_command('anime_search', aliases = ['以图搜番','用图找番','以图找番',*KEYWORDS], only_to_me = False)
6363
async def AnimeSearch(session: CommandSession):
6464
user = session.event.user_id
6565
group = session.event.group_id

0 commit comments

Comments
 (0)