Python 如何对URL(特别是GIF)使用.random.choice()函数?

Python 如何对URL(特别是GIF)使用.random.choice()函数?,python,bots,discord,discord.py,discord.py-rewrite,Python,Bots,Discord,Discord.py,Discord.py Rewrite,我最近创建了一个非常简单的discord机器人,它可以根据命令从选项中随机引用。我也想做同样的事,但要用gif。格式相同吗 第一个代码是我的quote bot编码,第二个代码是我尝试嵌入gif,但我不确定如何将.random.choice()合并到这个 @client.command(brief='-positivity', description='will give you a positive quote!') async def positivity(ctx): quotes =

我最近创建了一个非常简单的discord机器人,它可以根据命令从选项中随机引用。我也想做同样的事,但要用gif。格式相同吗

第一个代码是我的quote bot编码,第二个代码是我尝试嵌入gif,但我不确定如何将.random.choice()合并到这个

@client.command(brief='-positivity', description='will give you a positive quote!')
async def positivity(ctx):
    quotes = [#choice1, #choice2, ...., choice#25]
    await ctx.send(f'**{random.choice(quotes)}**')

\\

@client.command(brief='-hug', desription="Will give you a warm hug")
async def hug(ctx):
    gif = discord.Embed(title = 'A hug has been sent!', description = 'warm, fuzzy and comforting <3', color = 0x83B5E3)
    gif.set_image(url = 'https://media.giphy.com/media/fvN5KrNcKKUyX7hNIA/giphy.gif')
    await ctx.channel.send(embed=gif)
@client.command(简短='-positivity',description='将给您一个肯定的引号!')
异步def正性(ctx):
引号=[#选择1,#选择2,…,选择25]
等待ctx.send(f'**{random.choice(引号)}**)
\\
@command(brief='-hug',desription=“将给你一个温暖的拥抱”)
异步(ctx):
gif=discord.Embed(title='一个拥抱已发送!',description='温暖、模糊、令人安慰
我想你可能想用它来做这样的事情:

quotes = ['quote one', 'etc...']
await ctx.send(random.choice(quotes))

我需要添加url='url'还是只需添加:['url1','url2',等等]?
quotes = ['quote one', 'etc...']
await ctx.send(random.choice(quotes))