S
S
Sandy44tt2021-11-01 21:06:32
Python
Sandy44tt, 2021-11-01 21:06:32

How to remove the help command?

I wanted to make a help command, but the command is already there. What if you want to make your help and delete the old one? Here is the code:

import discord
from discord.ext import commands
from config import settings

bot = commands.Bot(command_prefix = settings['prefix'])

@bot.command() 
async def hello(ctx): 
    author = ctx.message.author 
    await ctx.send(f'Привет!, {author.mention}!') 

@bot.command()
async def status(ctx):
    await ctx.reply('Я жив!')

bot.run(settings['token'])

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
theycallmenazar, 2021-11-02
@Sandy44tt

bot.remove_command('help')
Write after
bot = commands.Bot(command_prefix = settings['prefix'])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question