Removed help-Command
This commit is contained in:
@@ -103,13 +103,14 @@ else:
|
|||||||
|
|
||||||
|
|
||||||
@bot.command(name="shutdown")
|
@bot.command(name="shutdown")
|
||||||
|
@commands.is_owner()
|
||||||
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...")
|
||||||
bot.close()
|
await 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")
|
||||||
@@ -220,6 +221,9 @@ else:
|
|||||||
td = timedelta(seconds=cool_down_time)
|
td = timedelta(seconds=cool_down_time)
|
||||||
embed = Embed(title=f"{warning}Dieser Command befindet sich im Cool Down!\n Versuche es in `{td}` nochmal!",
|
embed = Embed(title=f"{warning}Dieser Command befindet sich im Cool Down!\n Versuche es in `{td}` nochmal!",
|
||||||
color=15158332)
|
color=15158332)
|
||||||
|
elif isinstance(error, discord.ext.commands.is_owner()):
|
||||||
|
embed = Embed(title=f"{warning}{error}",
|
||||||
|
color=15158332)
|
||||||
else:
|
else:
|
||||||
embed = Embed(title=f"{error}", color=15158332)
|
embed = Embed(title=f"{error}", color=15158332)
|
||||||
await ctx.respond(embed=embed)
|
await ctx.respond(embed=embed)
|
||||||
|
|||||||
Reference in New Issue
Block a user