Python: Discord botu kodundaki hata nedir?

chicken

Yoctopat
Katılım
18 Nisan 2024
Mesajlar
5
Daha fazla  
Cinsiyet
Erkek
Kodum şu:

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

token = "doğru ama burda vermedim"

class Bot(commands.Bot):
def init(self):
super().init( command_prexif ="o!", pm_help=None, description="[-OSIRIS Discord Botu-]")
self.bot_version = "1.0.0"
        self.bot_name = "OSIRIS Vakıf Botu"
        self.author = "tavuuuk"
        self.get_devicesOs = platform.system()

async def on_ready(self):
print("OSIRIS Bot Açılıyor.")
print("BOT: {}".format(self.user.name))
print("BOT ID {}", format(self.user.id))


Bot= Bot()
bot.run(token)

Hata:
Traceback (most recent call last):
File "C:\python\OSIRIS BOT\.venv\Lib\main.py", line 21, in <module>
Bot= Bot()
^^^^^
File "C:\python\OSIRIS BOT\.venv\Lib\main.py", line 9, in init
super().init( command_prexif ="o!", pm_help=None, description="[-OSIRIS Discord Botu-]")
TypeError: BotBase.init() missing 1 required positional argument: 'command_prefix'
 
Hocam hatada da belirtiliyor hata kısmına daha dikkatli bakarsanız bir sonraki sorunları anlayabilirsiniz.
Hata:
Traceback (most recent call last):
File "C:\python\OSIRIS BOT\.venv\Lib\main.py", line 21, in <module>
Bot= Bot()
^^^^^
File "C:\python\OSIRIS BOT\.venv\Lib\main.py", line 9, in init
super().init( command_prexif ="o!", pm_help=None, description="[-OSIRIS Discord Botu-]")
TypeError: BotBase.init() missing 1 required positional argument: 'command_prefix'
 

Technopat Haberler

Geri
Yukarı