My discord bot is a few lines of code, and it is already not functioning. it throws the following message: “discord.ext.commands.errors.CommandNotFound: Command “hello” is not found”.
import discord
from discord.ext import commands
version = 0.1
client = commands.Bot(command_prefix= "!", intents=discord.Intents.all())
@client.command
async def hello(ctx):
await ctx.send(f"[ADMIN INTERFACE] Running version")
client.run('XXXX')
If you spot the issue, I would much appriciate your help.
I tried looking up a tutorial, and checked what they were doing, but when I changed my code, nothing changed.