import discord
from discord.ext import commands
from discord.ext.commands import client
import config
client = commands.Bot( command_prefix = '!', intents = discord.Intents.all())
@client.event
async def on_ready():
print('Bot Start')
@client.command()
async def clear(ctx, amount = 100):
await ctx.channel.purge(limit = amount)
print('Ok, it will be done')
client.run(config.TOKEN)