Message formating
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
SebClem 2023-11-02 21:11:32 +01:00
parent 2cb1539517
commit f4e4c5dda4
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ async def send_command_reply(
elif first: elif first:
await interaction.followup.send( await interaction.followup.send(
files=splited_file, files=splited_file,
content=f"{title} by {art_author} - <{url}> - Submited by {author.mention} {chr(10) + TIPS_MESSAGE if not muted else ''}", content=f"**{title}** by `{art_author}` - <{url}> - Submited by {author.mention} {chr(10) + TIPS_MESSAGE if not muted else ''}",
) )
first = False first = False
else: else:

View File

@ -59,7 +59,7 @@ def dowload_pixiv_images(
url=illust["meta_single_page"]["original_image_url"], path=dest_folder url=illust["meta_single_page"]["original_image_url"], path=dest_folder
) )
logging.info("Download finished !") logging.info("Download finished !")
return (illust["title"], f"{illust['user']['name']}({illust['user']['account']})") return (illust["title"], f"{illust['user']['name']} ({illust['user']['account']})")
def download_thread(q: Queue[Union[Tuple[str, str, pixivpy3.AppPixivAPI], None]]): def download_thread(q: Queue[Union[Tuple[str, str, pixivpy3.AppPixivAPI], None]]):