mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-27 06:20:56 +00:00
feat: 国产某聊天软件的图床支持
This commit is contained in:
@ -66,6 +66,8 @@ async def _(result: Arparma, event: T_MessageEvent, bot: T_Bot):
|
||||
keywords: list[str] = result.subcommands["search"].args.get("keywords")
|
||||
rs = await npm_search(keywords)
|
||||
max_show = 10
|
||||
for p in rs:
|
||||
print(p.module_name, p.homepage)
|
||||
if len(rs):
|
||||
reply = f"{ulang.get('npm.search_result')} | {ulang.get('npm.total', TOTAL=len(rs))}\n***"
|
||||
for plugin in rs[:min(max_show, len(rs))]:
|
||||
|
Reference in New Issue
Block a user