Warum kann ich mit Python keine personalisierten Commands programmieren?
Ich wollte bei Python ein Bot mit personalisierten Commands schreiben. Aber immer wenn ich in Discord den Command "!test" ausführe passiert nichts.
import discord
from discord.ext import commands
intents = discord.Intents.default()
bot = commands.Bot(command_prefix='!', intents=intents)
token = ""
@bot.event
async def on_ready():
print(f"{'-'*40}\nDiscord Bot ist online als {bot.user.name}")
@bot.command()
async def test(ctx):
await ctx.send(ctx.author)
bot.run(token)
Weiß jemand was bei dem Code falsch ist und wie man es lösen könnte?
LG