From 0e22a01310eab687daa82080246e604662aded85 Mon Sep 17 00:00:00 2001 From: Paillat Date: Thu, 3 Aug 2023 13:58:44 +0200 Subject: [PATCH] =?UTF-8?q?=C2=AD=C6=92=C3=B8=C3=A1=C2=B4=C2=A9=C3=85=20ch?= =?UTF-8?q?ore(format):=20run=20black=20to=20format=20the=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functionscalls.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/functionscalls.py b/src/functionscalls.py index 9d9d5b9..cc859fc 100644 --- a/src/functionscalls.py +++ b/src/functionscalls.py @@ -221,7 +221,9 @@ async def send_ascii_art_text( ): font = font_matches[font] text = text.replace(" ", "+") - asciiiar_url = f"https://asciified.thelicato.io/api/v2/ascii?text={text}&font={font}" + asciiiar_url = ( + f"https://asciified.thelicato.io/api/v2/ascii?text={text}&font={font}" + ) print(asciiiar_url) ascii_art = await do_async_request(asciiiar_url, json=False) final_message = f"```\n{ascii_art}```\n{message}" @@ -240,13 +242,14 @@ async def send_ascii_art_text( await message_in_channel_in_wich_to_send.channel.send( "Sorry, the ascii art is too big to be sent" ) - if len (message) < 2000: + if len(message) < 2000: await message_in_channel_in_wich_to_send.channel.send(message) else: while len(message) > 0: await message_in_channel_in_wich_to_send.channel.send(message[:2000]) message = message[2000:] + async def send_ascii_art_image( message_in_channel_in_wich_to_send: discord.Message, query: str, message: str = "" ):