Does discord.py at the same time reaction to messages on the team?

At the time of writing the shell-bot was faced with the following question. Is it possible to use both commands and responses to posts from the bot? Under the "response message", I mean:
@Bot.event
async def on_message(message)

And under the commands respectively:
@Bot.command()
async def info(ctx)

While using the reaction only messages that command, the bot does not read. Is it possible the simultaneous use?
April 3rd 20 at 17:17
1 answer
April 3rd 20 at 17:19
Solution
Solved:
@Bot.event
async def on_message(message):
 if message.content.startswith('-debug'):
 await message.channel.send('d')

 await Bot.process_commands(message) # you need to add


@Bot.command()
async def info(ctx):
 await ctx.send('arg')


You need to add the await Bot.process_commands(message) line at the end of your on_message

Find more questions by tags PythonDiscord