i made a discord bot in python but every time i add this to my script, the commands stop working:
@client.event
async def on_message(message):
message=message.content
print(message)
Does somebody know, how to fix that? Thanks in advance!!!!
i made a discord bot in python but every time i add this to my script, the commands stop working:
@client.event
async def on_message(message):
message=message.content
print(message)
Does somebody know, how to fix that? Thanks in advance!!!!
add this line to your code:
await bot.process_commands(message)
for Example:
@bot.event
async def on_message(message):
# do some extra stuff here
await bot.process_commands(message)