import discord from discord.ext import commands from time import sleep client = commands.Bot(command_prefix = '>') @client.event async def on_ready(): print("BOT online") @client.command() async def clear(ctx, *, ile = 1): try: if ile > 0: await ctx.channel.purge(limit = ile + 1) else: await ctx.send("Podaj wartość większą od zera!") except ValueError: await ctx.send("Ilość wiadomości do usunięcia musi być podana liczbą!") @client.command() async def szpadzik(ctx, *, ile): await ctx.channel.purge(limit = 1) for i in range(int(ile)): sleep(1) await ctx.send(f"Szpadzik to jest ziomal! po raz {i+1}") client.run("***0MDEy******TkzODk3.****FjQ.ok*******mzDtXqMBl42***Q")