import discord
from discord.ext import commands
bot = commands.Bot(command_prefix='.', intents=discord.Intents.all())
@bot.event
async def on_ready():
print('Бот запущен')
token = open('token.txt', 'r').readline()
bot.run(token)
Traceback (most recent call last):