feat: extension loading commands are now hidden
This commit is contained in:
parent
b8b8484466
commit
841a6586fe
|
@ -25,21 +25,21 @@ if TOKEN is None:
|
||||||
bot = commands.Bot(command_prefix=commands.when_mentioned_or('$b '))
|
bot = commands.Bot(command_prefix=commands.when_mentioned_or('$b '))
|
||||||
|
|
||||||
|
|
||||||
@bot.command()
|
@bot.command(hidden=True)
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def load(ctx, extension):
|
async def load(ctx, extension):
|
||||||
bot.load_extension(f'cogs.{extension}')
|
bot.load_extension(f'cogs.{extension}')
|
||||||
print(f'cogs.{extension} loaded')
|
print(f'cogs.{extension} loaded')
|
||||||
|
|
||||||
|
|
||||||
@bot.command()
|
@bot.command(hidden=True)
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def unload(ctx, extension):
|
async def unload(ctx, extension):
|
||||||
bot.unload_extension(f'cogs.{extension}')
|
bot.unload_extension(f'cogs.{extension}')
|
||||||
print(f'cogs.{extension} unloaded')
|
print(f'cogs.{extension} unloaded')
|
||||||
|
|
||||||
|
|
||||||
@bot.command()
|
@bot.command(hidden=True)
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def reload(ctx, extension):
|
async def reload(ctx, extension):
|
||||||
bot.reload_extension(f'cogs.{extension}')
|
bot.reload_extension(f'cogs.{extension}')
|
||||||
|
|
Loading…
Reference in New Issue