Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
🔖 bump version 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
CMHopeSunshine committed Nov 16, 2023
1 parent 5ddfbba commit 47dbe2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nonebot/adapters/villa/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,11 +1089,11 @@ def _parse_components(components: List[Component]) -> Optional[Panel]:
small_total.append([])
elif com_lenght <= 12:
mid_total[-1].append(com)
if len(mid_total[-1]) >= 3:
if len(mid_total[-1]) >= 2:
mid_total.append([])
elif com_lenght <= 30:
big_total[-1].append(com)
if len(big_total[-1]) >= 3:
if len(big_total[-1]) >= 1:
big_total.append([])
else:
log("warning", f"component {com.id} text is too long, ignore")
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-adapter-villa"
version = "1.2.0"
version = "1.2.1"
description = "NoneBot2 米游社大别野 Bot 适配器。MiHoYo Villa Bot adapter for nonebot2."
authors = ["CMHopeSunshine <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 47dbe2b

Please sign in to comment.