mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-10 18:57:56 +08:00
Merge branch 'main' into dev
This commit is contained in:
@@ -13,7 +13,7 @@ class NcmArtist(TargetMixin, NewMessage):
|
||||
enabled = True
|
||||
is_common = True
|
||||
schedule_type = 'interval'
|
||||
schedule_kw = {'minutes': 10}
|
||||
schedule_kw = {'minutes': 1}
|
||||
name = "网易云-歌手"
|
||||
|
||||
async def get_target_name(self, target: Target) -> Optional[str]:
|
||||
|
||||
@@ -42,7 +42,7 @@ class Post:
|
||||
return Image.open(pic_buffer)
|
||||
|
||||
def _check_image_square(self, size: tuple[int, int]) -> bool:
|
||||
return abs(size[0] - size[1]) / size[0] < 0.01
|
||||
return abs(size[0] - size[1]) / size[0] < 0.05
|
||||
|
||||
async def _pic_merge(self) -> None:
|
||||
if len(self.pics) < 3:
|
||||
|
||||
Reference in New Issue
Block a user