import discord
from discord.ext import commands
import asyncio
TOKEN = 'Your Discord Bot Token'
intents = discord.Intents.default()
intents.direct_messages = True
bot = commands.Bot(command_prefix='!', intents=intents)
@bot.event
async def on_ready():
    print(f'Logged in as {bot.user.name}')
@bot.event
async def on_message(message):
    if isinstance(message.channel, discord.DMChannel):
        await asyncio.sleep(15)  # 15 saniye bekle
        await message.delete()
bot.run(TOKEN)