Skip to content

Commit

Permalink
文本对齐
Browse files Browse the repository at this point in the history
  • Loading branch information
tomorinao-www committed Sep 1, 2024
1 parent 329e263 commit 93ad7f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions nonebot_plugin_anime_trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,13 @@ async def main(bot: Bot, event: Event, state: T_State):
may_num = min(config.animetrace_max_num, len(char))
msg_txt = f"该角色有{may_num}种可能\n"
for i in range(may_num):
msg_txt += f"{i+1}\n\
角色:{char[i]['name']}\n\
来自{mode}:{char[i]['cartoonname']}\n\
bing搜索:www.bing.com/images/search?q={char[i]['name']}\n\
萌娘百科:zh.moegirl.org.cn/index.php?search={char[i]['name']}"
msg_txt += (
f"{i+1}\n"
f"角色:{char[i]['name']}\n"
f"来自{mode}:{char[i]['cartoonname']}\n"
f"bing搜索:www.bing.com/images/search?q={char[i]['name']}\n"
f"萌娘百科:zh.moegirl.org.cn/index.php?search={char[i]['name']}"
)

message = msg_txt + MessageSegment.image(img_bytes.getvalue())
message_list.append(message)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot-plugin-anime-trace"
version = "0.1.7"
version = "0.1.8"
description = "通过ai.animedb.cn的api识别动漫、galgame角色"
authors = ["友利奈绪-勿忘我 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 93ad7f1

Please sign in to comment.