A
A
ARKRAFTER2020-12-14 23:09:23
Python
ARKRAFTER, 2020-12-14 23:09:23

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))

But after I inserted it into the code, other commands do not work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ARKRAFTER, 2020-12-14
@ARKRAFTER

await client.process_commands(message)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question