diff --git a/bot.py b/bot.py index 1e22e11..d04d8b8 100644 --- a/bot.py +++ b/bot.py @@ -2010,8 +2010,8 @@ async def wyszukaj_linki_do_dokumentow(ctx): result_view = DoSearchView() resulttab = ["r1", "r2", "r3", "r4", "r5", "r6"] - for i in range(1,7): - query = quote_plus(resulttab[i]) + for i in range(1,6): + 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