import discord
from discort.ext import commands
bot = commands.bot(command_prefix="!", intents=discord.Intents.all())
@bot.event
async def on_ready():
print(f'{bot.user} Discord a bağlandı!')
@bot.command()
async def sa(ctx):
await ctx.send("As")
@bot.command()
@commands.has_permissions(administrator=True)
async def ban(ctx, member: discord.Member, *, reason=None):
await member.ban(reason=reason)
await ctx.send(f'{member.mention} kullanıcısı banlandı! Ban sebebi : {reason} ')
bot.run('TOKEN')