I want to make a discord bot in python
this is my code:
@app.event
async def on_message(message):
sendu = exec(message.content)
await message.channel.send(sendu)
if I send a message in discord and save in var sendu
and use exec function to run the sendu
but every time I try my code example: random.randint(1, 100)
it returns this error, what is wrong with my code?
discord.errors.HTTPException: 400 Bad Request (error code: 50006): Cannot send an empty message