mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
refactor(functionscalls.py): remove unnecessary print statements for image_url and json variables
The print statements for the image_url and json variables were removed as they were not providing any useful information and were cluttering the code.
This commit is contained in:
@@ -205,10 +205,8 @@ async def send_a_gif(
|
||||
):
|
||||
query = query.replace(" ", "+")
|
||||
image_url = f"{tenor_api_url}{query}&limit={limit}"
|
||||
print(image_url)
|
||||
response = await do_async_request(image_url)
|
||||
json = response
|
||||
print(json)
|
||||
gif_url = random.choice(json["results"])["itemurl"] # type: ignore
|
||||
message = message + "\n" + gif_url
|
||||
await message_in_channel_in_wich_to_send.channel.send(message)
|
||||
|
||||
Reference in New Issue
Block a user