Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/wling-art/U1bot
Browse files Browse the repository at this point in the history
  • Loading branch information
wling-art committed Jan 9, 2024
2 parents 41059dd + 3ecad59 commit b6c10d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/plugins/ncm/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ async def upload(self, data: dict, fr: str, event: Union[GroupMessageEvent, Priv
await self.upload_data_file(event=event, data=cf)

async def start_upload(self, ids: List[int], event: Union[GroupMessageEvent, PrivateMessageEvent]):
"""一般地 320k及以上即 flac, 320k及以下即 mp3,96k及以下即 m4a
"""
"""一般地 320k及以上即 flac, 320k及以下即 mp3,96k及以下即 m4a"""
data: list = self.get_detail(ids)
for i in range(len(ids)):
await self.upload(data[i], "song" if len(ids) == 1 else "list", event)
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/nonebot_plugin_githubcard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def match_link_parts(link):
async def github_handle(bot: Bot, event: GroupMessageEvent, state: T_State):
url = match_link_parts(event.get_plaintext())
imageUrl = await get_github_reposity_information(url)
if (imageUrl == "获取信息失败"):
if imageUrl == "获取信息失败":
raise AssertionError
await github.send(MessageSegment.image(imageUrl))

0 comments on commit b6c10d9

Please sign in to comment.