Answer the question
In order to leave comments, you need to log in
Does not respond to command after writing on_message how to fix it?
there is a code
@client.event
async def on_message(message):
channl = client.get_channel(781188134665846806)
chnsend = client.get_channel(788083527706214420)
author = message.author
if message.channel.id == 781188134665846806:
await channl.purge(limit = 1)
await chnsend.send('заявка от: {} текст: {}'.format(author, message.content))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question