ВОПРОС ПО ПОВОДУ ДИСКОРД БОТА. вот как объединить(если так можно выразиться) @bot.command() и @bot.event я хочу чтобы бот реагировал на и на обычные сообщения и на команды
import discord
from discord.ext import commands
intents = discord.Intents.all()
intents.message_content = True
bot = commands.Bot(command_prefix="!", intents=intents)
@bot.command()
async def test(ctx):
await ctx.send(f'123')
@bot.event
async def on_message(message):
print(f'Message by {message.author}: {message.content}')
bot.run(token)