Removed help-Command

This commit is contained in:
Lukas Blacha
2023-02-07 23:14:07 +01:00
parent 02609a65e5
commit 651cf70885

View File

@@ -88,7 +88,7 @@ else:
bot = commands.Bot( bot = commands.Bot(
command_prefix=commands.when_mentioned_or("!"), command_prefix=commands.when_mentioned_or("!"),
description="Relatively simple music bot example", description="Relatively simple music bot example",
intents=intents, intents=intents, help_command=None
) )
@@ -102,14 +102,14 @@ else:
print("------") print("------")
@bot.command(name="Shutdown") @bot.command(name="shutdown")
async def _shutdown(ctx): async def _shutdown(ctx):
files = os.listdir(cache_dir) files = os.listdir(cache_dir)
async with ctx.channel.typing(): async with ctx.channel.typing():
for file in files: for file in files:
os.remove(f"{cache_dir}/{file}") os.remove(f"{cache_dir}/{file}")
await ctx.send(f"{warning}Cleaned up {len(files)} Files...\n\n{success}Shutting down...") await ctx.send(f"{warning}Cleaned up {len(files)} Files...\n\n{success}Shutting down...")
await bot.close bot.close()
@bot.slash_command(name="join", description="Summon the bot into your channel") @bot.slash_command(name="join", description="Summon the bot into your channel")