mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-11 01:27:29 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
afbcad3a1c
@ -203,7 +203,7 @@ async def _(result: Arparma, event: T_MessageEvent, bot: T_Bot, npm: Matcher):
|
|||||||
elif sc.get("search"):
|
elif sc.get("search"):
|
||||||
keywords: list[str] = result.subcommands["search"].args.get("keywords")
|
keywords: list[str] = result.subcommands["search"].args.get("keywords")
|
||||||
rs = await npm_search(keywords)
|
rs = await npm_search(keywords)
|
||||||
max_show = result.subcommands.get("search").args.get("show_num")
|
max_show = 10
|
||||||
if len(rs):
|
if len(rs):
|
||||||
reply = f"{ulang.get('npm.search_result')} | {ulang.get('npm.total', TOTAL=len(rs))}\n***"
|
reply = f"{ulang.get('npm.search_result')} | {ulang.get('npm.total', TOTAL=len(rs))}\n***"
|
||||||
for storePlugin in rs[:min(max_show, len(rs))]:
|
for storePlugin in rs[:min(max_show, len(rs))]:
|
||||||
|
Loading…
Reference in New Issue
Block a user