Facebook
From Dominik Banach, 4 Years ago, written in Python.
This paste is a reply to irytowanie Szpadzika - python discord bot from Dominik Banach - go back
Embed
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")


Replies to Re: irytowanie Szpadzika - python discord bot rss

Title Name Language When
Re: Re: irytowanie Szpadzika - python discord bot Dominik Banach python 4 Years ago.