Discord Bot geht nicht an (pyohon)?
ich will mal was neues machen und joa mein bot geht nicht an
import discord
from discord.ext import commands
bot = commands.Bot( prefix, intents = intents)
async def on_ready():
print(f"We have logged in as {bot.user}")
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name =f"{bot.command_prefix}help"))
print(discord.__version__)
bot.run(ertrax raus)
Fehler meldung: Traceback (most recent call last):
File "C:\Users\\PycharmProjects\pythonProject1\main.py", line 4, in <module>
bot = commands.Bot( prefix, intents = intents)
^^^^^^
NameError: name 'prefix' is not defined
kann wer mir helfen?
Pycharm,
Discord Bot