【发布时间】:2020-10-30 19:38:33
【问题描述】:
response = get(url='https://benbotfn.tk/api/v1/aes')
data = response.json()
@client.command()
async def aes123(ctx):
await ctx.send(data['mainKey'])
@client.command()
async def aeskey(ctx):
embed=discord.Embed(title="aes")
embed.add_field(name='aes', value=f'{data['mainKey']} aes key')
await ctx.send(embed=embed)
运行此代码时出现此错误:
【问题讨论】:
标签: python discord discord.py