Discord Python botunda "Indentationerror" hatası

Mustafa aaa

Centipat
Katılım
19 Temmuz 2024
Mesajlar
81
Daha fazla  
Cinsiyet
Erkek
Meslek
öğrenci
Python'da Discord botum için kod yazmaya çalışıyordum, şöyle bir kod yazdım:

Python:
import discord.
from discord.ext import commands.

intents = discord.Intents.all()

class MyBot(commands.Bot):
 def __init__(self, *args, **kwargs):
 super().__init__(command_prefix='/', intents=intents, *args, **kwargs)

bot = MyBot()

@bot.event
async def on_ready():
 print(f'Bot {bot.user} olarak giriş yaptı!')

@bot.command(name='merhaba')
async def hello(ctx):
 await ctx.send('Merhaba!')

bot.run('token yazılı burada')

PS C:\Users\ASUS\OneDrive\Masaüstü\python.py> şu hatayı verdi, neden? Yardım edebilir misiniz? Nerede hata yaptım?
 
Son düzenleyen: Moderatör:

Technopat Haberler

Yeni konular

Geri
Yukarı