Не понимаю в чем ошибка, помогите пожалуйста

Код

from webserver import keep_alive 
import discord
from discord.ext import commands
import disnake
from disnake.ext import commands
bot = commands.Bot(command_prefix = ">", help_command=None, intents = disnake.Intents.all())
bot.remove_command("help")

@bot.event
async def on_command_error(ctx, error):
  print(error)

  if isinstance(error, commands.MissingPermissions):
    await ctx.send(embed=disnake.Embed(
    title="Недостаточно прав",
    description=f"{ctx.author}, у вас не хватает прав для этой команды", 
    color=0xFF0000
  ))
  elif isinstance(error, commands.CommandError):
    await ctx.send(embed=disnake.Embed(
    title="Ошибка команды",
    description=f"Вы неправильно написали команду, она пишется так: \n`{ctx.prefix}{ctx.command.name}`\nИспользование:\n`{ctx.prefix}{ctx.command.usage}`", 
    color=0xFF0000
  ))

@bot.command(name= 'hello', aliases = ['привет'], usage = "hello")
async def hello(ctx):
    await ctx.send("привет!")

@bot.event
async def on_ready():
    print ("I am connected")

@bot.event
async def on_message_edit(before, after):
    if before.content == after.content:
        return
    await before.channel.send(f"Сообщение было изменено\n{before.content} -> {after.content}")

#==================================================================================#
@bot.event
async def on_member_join(member):
    channel = member.guild.system_channel

    embed = disnake.Embed(
        title="Привет братан!",
        description=f"Привет **{member.name}#{member.discriminator}**!\nдобро пожаловать на сервер!",
        color=0x8A2BE2
        )
    await channel.send(embed=embed)

@bot.event
async def on_member_remove(member):
    channel = member.guild.system_channel

    embed = disnake.Embed(
        title="Братан вышел!",
        description=f"К сожалению, участник **{member.name}#{member.discriminator}** вышел из сервера\nудачных ему путей",
        color=0x8A2BE2
        )
    await channel.send(embed=embed)

@bot.command(name= 'kick', aliases = ['кик'], usage = "kick <@user> <reason=None>")
@commands.has_permissions(kick_members=True, administrator=True)
async def kick(ctx, member: disnake.Member, *, reason="Нарушение правил"):
    
  embed = disnake.Embed(
    title="Участника кикнули",
    description=f"По причине: {reason}",
    color=0xFF0000
  )
  
  embed.add_field(name = 'Кикнули:', value = '{}'.format(member.mention))
  embed.set_footer(text = 'Был кикнут от: {}'.format(ctx.author.name))

  await ctx.send(embed=embed)
  await member.kick(reason=reason)

@bot.command(name= 'ban', aliases = ['бан'], usage = "ban <@user> <reason=None>")
@commands.has_permissions(ban_members=True, administrator=True)
async def bun(ctx, member: disnake.Member, *, reason="Нарушение правил"):
    
  embed = disnake.Embed(
    title="Участника забанили",
    description=f"По причине: {reason}",
    color=0xFF0000
  )
  
  embed.add_field(name = 'Забанили:', value = '{}'.format(member.mention))
  embed.set_footer(text = 'Был забанен от: {}'.format(ctx.author.name))
  
  await ctx.send(embed=embed)
  await member.ban(reason=reason)

 #======================================================================================#
# clear message
@bot.command(name= 'clear', aliases = ['очистить'], usage = "clear <count>", pass_content=True)
@commands.has_permissions(manage_messages=True, administrator=True)

async def clear(ctx, amount = 100):
    await ctx.channel.purge(limit=amount)

# help 
@bot.command(name= 'help', aliases = ['помощь'], usage = "help", passcontext = True)

async def help(ctx):
    embed = disnake.Embed(
    title="Навигация по командам",
    color=0x8A2BE2
  )
    embed.add_field(name = '{}clear'.format('>'), value = 'Очистка чата')
    embed.add_field(name = '{}kick'.format('>'), value = 'Кик пользователя')
    embed.add_field(name = '{}ban'.format('>'), value = 'Бан пользователя')
    embed.add_field(name = '{}hello'.format('>'), value = 'Поздороваться с ботом')

    await ctx.send(embed=embed)
keep_alive()
bot.run("TOKEN")

Ошибка

Именно на bot.run()


Ответы (0 шт):