Removed help-Command
This commit is contained in:
@@ -103,13 +103,14 @@ else:
|
||||
|
||||
|
||||
@bot.command(name="shutdown")
|
||||
@commands.is_owner()
|
||||
async def _shutdown(ctx):
|
||||
files = os.listdir(cache_dir)
|
||||
async with ctx.channel.typing():
|
||||
for file in files:
|
||||
os.remove(f"{cache_dir}/{file}")
|
||||
await ctx.send(f"{warning}Cleaned up {len(files)} Files...\n\n{success}Shutting down...")
|
||||
bot.close()
|
||||
await bot.close()
|
||||
|
||||
|
||||
@bot.slash_command(name="join", description="Summon the bot into your channel")
|
||||
@@ -220,6 +221,9 @@ else:
|
||||
td = timedelta(seconds=cool_down_time)
|
||||
embed = Embed(title=f"{warning}Dieser Command befindet sich im Cool Down!\n Versuche es in `{td}` nochmal!",
|
||||
color=15158332)
|
||||
elif isinstance(error, discord.ext.commands.is_owner()):
|
||||
embed = Embed(title=f"{warning}{error}",
|
||||
color=15158332)
|
||||
else:
|
||||
embed = Embed(title=f"{error}", color=15158332)
|
||||
await ctx.respond(embed=embed)
|
||||
|
||||
Reference in New Issue
Block a user