【发布时间】:2020-01-16 03:04:36
【问题描述】:
我创建了一个有效的 eval 命令。就在我使用它的时候,它也吐出这个:
这是我目前的代码:
@commands.is_owner()
@client.command(name='eval')
async def eval_(ctx, *, command):
res2 = eval(command)
if inspect.isawaitable(res2):
embed = discord.Embed(
title='Eval', description='' , colour=discord.Colour.green())
embed.add_field(name='Input', value=f'||{await res2}||', inline=False)
await ctx.send(embed=embed)
我不知道如何解决这个问题。有人可以帮忙吗?
【问题讨论】:
标签: python python-3.x discord.py