May 17, 2026, 11:40 PM

This commit is contained in:
Paweł Domański
2026-05-18 06:40:19 +00:00
commit 64944cf004
896 changed files with 310709 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import discord
from discord.ext import commands
# Inicjalizacja bota
intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix="!", intents=intents)
# Event: bot jest gotowy do użycia
@bot.event
async def on_ready():
print(f'Zalogowano jako {bot.user}')
# Przykładowa komenda
@bot.command(name="hello")
async def hello(ctx):
await ctx.send(f'Witaj, {ctx.author.name}!')
# Uruchomienie bota z tokenem
bot.run('YOUR_TOKEN_HERE')