mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 15:52:10 +00:00
aa
This commit is contained in:
@@ -2019,10 +2019,13 @@ async def wyszukaj_linki_do_dokumentow(ctx):
|
|||||||
resulttab.append(str(item["title"]))
|
resulttab.append(str(item["title"]))
|
||||||
item_link = "https://sci-hub.se/" + str(item["DOI"])
|
item_link = "https://sci-hub.se/" + str(item["DOI"])
|
||||||
resultlink.append(item_link)
|
resultlink.append(item_link)
|
||||||
|
print(len(resulttab))
|
||||||
for i in range(1, min(5,len(resulttab))):
|
for i in range(1, min(5,len(resulttab))):
|
||||||
query = quote_plus(resulttab[i-1])
|
print(i)
|
||||||
result_view.add_item(discord.ui.Button(label = resulttab[i-1], row = i,url=resultlink[i]))
|
url = quote_plus(resultlink[i-1])
|
||||||
await ctx.send("This is a button!", view=result_view) # Send a message with our View class that contains the button
|
result_view.add_item(discord.ui.Button(label = resulttab[i-1], row = i,url=url))
|
||||||
|
labelka = "Wyniki wyszukiwania dla: " + str(query)[30:] # ile znaleziono artykułów w ogóle, ile zostało po refine
|
||||||
|
await ctx.send(labelka, view=result_view) # Send a message with our View class that contains the button
|
||||||
|
|
||||||
|
|
||||||
# *================================== Run
|
# *================================== Run
|
||||||
|
|||||||
Reference in New Issue
Block a user