Почему бот в дискорд не отправляет сообщения на сервер?
Вот код:
from discord.ext import commands
import discord
bot = commands.Bot(command_prefix='$',intents = discord.Intents.default())
@bot.event
async def on_ready():
print("Бот включился")
@bot.event
async def on_message(message):
if message.author == bot.user:
return
if message.content.startswith("Привет"):
await message.channel.send("И тебе привет!")
bot.run('токен')