From 841a6586fef7f269c73ebac8bfe54ed2d7b140fc Mon Sep 17 00:00:00 2001 From: bibin Date: Sat, 2 Jan 2021 19:39:25 +0100 Subject: [PATCH] feat: extension loading commands are now hidden --- src/bot.py | 6 +++--- src/cogs/basic_game.py | 0 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 src/cogs/basic_game.py diff --git a/src/bot.py b/src/bot.py index c6c01bb..37eed11 100644 --- a/src/bot.py +++ b/src/bot.py @@ -25,21 +25,21 @@ if TOKEN is None: bot = commands.Bot(command_prefix=commands.when_mentioned_or('$b ')) -@bot.command() +@bot.command(hidden=True) @commands.is_owner() async def load(ctx, extension): bot.load_extension(f'cogs.{extension}') print(f'cogs.{extension} loaded') -@bot.command() +@bot.command(hidden=True) @commands.is_owner() async def unload(ctx, extension): bot.unload_extension(f'cogs.{extension}') print(f'cogs.{extension} unloaded') -@bot.command() +@bot.command(hidden=True) @commands.is_owner() async def reload(ctx, extension): bot.reload_extension(f'cogs.{extension}') diff --git a/src/cogs/basic_game.py b/src/cogs/basic_game.py new file mode 100644 index 0000000..e69de29