diff --git a/bot.py b/bot.py index d04d8b8..471a027 100644 --- a/bot.py +++ b/bot.py @@ -2008,10 +2008,10 @@ async def wyszukaj_linki_do_dokumentow(ctx): #5 przyciski przy każdym wierszu pozwalają sprawdzić czy plik istnieje na scihubie - jeśli tak podaje link do sciagniecia #6 ostatni wiersz to dalej, wróć, skasuj, zaciagnij kolejne wyniki (jeśli jest ich więcej niż 1000) result_view = DoSearchView() - resulttab = ["r1", "r2", "r3", "r4", "r5", "r6"] + resulttab = ["r1", "r2", "r3", "r4" - for i in range(1,6): - query = quote_plus(resulttab[i-1]) + for i in range(1,5): + query = quote_plus(resulttab[i]) 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