@bot.event
async def on_message(message):
if message.author == client.user:
return
pattern = re.compile(f"привет ")
if pattern.match(message.content.lower()) is not None:
await message.channel.send(f"привет {message.author.mention}!")
bot.process_commands(message)
в конец on_message