Answer the question
In order to leave comments, you need to log in
Why when I add async def on_message function other functions stop working?
I have my own bot in Python, I made commands for it, etc.
But there is a problem if I add this function in the code, which receives messages from the user:
@client.event
async def on_message(message):
print(message.channel.name)
print(message.channel.id)
Answer the question
In order to leave comments, you need to log in
managed to solve the problem in this way
within the same subnet, the intersection in the names of the listener key KEY = EXTPROC2002 was excluded
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question