Answer the question
In order to leave comments, you need to log in
Why is Discord.py bot not sending messages?
import discord
from discord.ext import commands
TOKEN = ' '
bot = commands.Bot(command_prefix='>')
@bot.command()
async def Hi(ctx):
await ctx.send('Hi')
bot.run(TOKEN)
Answer the question
In order to leave comments, you need to log in
Well, it's logical, you call the hello command , which does not exist, that's why it issues CommandNotFound, the command was not found
@bot.command()
async def hello(ctx):
await ctx.send('Привет!')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question