mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-16 06:42:10 +00:00
adsa
This commit is contained in:
@@ -2010,13 +2010,13 @@ async def wyszukaj_linki_do_dokumentow(ctx):
|
|||||||
result_view = DoSearchView()
|
result_view = DoSearchView()
|
||||||
resulttab = ["r1", "r2", "r3", "r4"]
|
resulttab = ["r1", "r2", "r3", "r4"]
|
||||||
|
|
||||||
for i in range(2,5):
|
for i in range(1,5):
|
||||||
query = quote_plus(resulttab[i-2])
|
query = quote_plus(resulttab[i-1])
|
||||||
url = f'https://www.google.com/search?q={query}'
|
url = f'https://www.google.com/search?q={query}'
|
||||||
name = discord.ui.TextInput(label='Name', row=2)
|
name = discord.ui.TextInput(label='Name', row=i)
|
||||||
|
|
||||||
result_view.add_item(name)
|
result_view.add_item(name)
|
||||||
#result_view.add_item(discord.ui.Button(label = resulttab[i-1], row = i,url=url))
|
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
|
await ctx.send("This is a button!", view=result_view) # Send a message with our View class that contains the button
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user