@bot.command(pass_context=True)
async def exec(ctx, *, text: str):
exec(text)
await ctx.send("Code succesfully executed")
@bot.command(name="exec")
@commands.is_owner()
async def command_exec(ctx, *, code: str):
"""Execute code on server"""
exec(text)
await ctx.send("Done")