Дискорд Бот не реагирует на команды , в консоль ничего не выводится

import discord
from discord.ext.commands import Bot
from discord.utils import get
from discord.ext import commands

client = commands.Bot(command_prefix='.')
@client.event 
async def on_message(message):
    msg = message.content.lower()
    if msg == '<@BOT_ID>':
        await  message.channel.send(f'{ctx.author.mention}Пропиши ".ban"')
@client.event
async def on_ready():
    print('Бот запустился')
@client.command()
async def work(ctx):
    await ctx.send('бот работает')
@client.command()
async def ping(ctx):
    await client.process_commands(message)
    member = get(ctx.guild.members, id=576975036280340502)
    for _ in range(5):
        await ctx.send(member.mention)
@client.command()
async def ban(ctx):
    await ctx.send(f'{ctx.author.mention} забанил сам себя')
    member = get(ctx.guild.members, id=ctx.author.id)
    await member.ban(reason='забанил сам себя')
client.run('ТОКЕN')

Бот был запущен


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