import discord
from discord.ext import commands
bot = commands.Bot(command_prefix = ">", intents = discord.Intents.all())
@bot.event
async def on_ready():
print("I am connecred!")
bot.run("")async def on_ready():
^
SyntaxError: invalid syntax
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix = ">", intents = discord.Intents.all())
@bot.event
async def on_ready():
print("I am connected!")
bot.run("тут твой токен")@bot.event
async def on_ready():
#тело функции должно быть @bot.event
async def on_ready():
#тело функции