From 974a9e2bc5316074d9555be6fc0fe5fb85080f91 Mon Sep 17 00:00:00 2001 From: Migatu Date: Mon, 1 Apr 2024 21:31:19 +0200 Subject: [PATCH] asa --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 7421f31..7eee2bd 100644 --- a/bot.py +++ b/bot.py @@ -2011,7 +2011,7 @@ async def wyszukaj_linki_do_dokumentow(ctx): resulttab = ["r1", "r2", "r3", "r4"] for i in range(1,5): - query = quote_plus(resulttab[i]) + query = quote_plus(resulttab[i-1]) url = f'https://www.google.com/search?q={query}' result_view.add_item(discord.ui.Button(label = resulttab[i-1], row = i,url=url)) await ctx.send("This is a button!", view=result_view) # Send a message with our View class that contains the button