aboutsummaryrefslogtreecommitdiff
path: root/code/cogs/owner/cog.py
diff options
context:
space:
mode:
Diffstat (limited to 'code/cogs/owner/cog.py')
-rw-r--r--code/cogs/owner/cog.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/code/cogs/owner/cog.py b/code/cogs/owner/cog.py
index 78dc246..a090414 100644
--- a/code/cogs/owner/cog.py
+++ b/code/cogs/owner/cog.py
@@ -9,7 +9,10 @@ class CogCommands(commands.Cog):
@commands.dm_only()
@commands.is_owner()
async def cog(self, ctx):
- await ctx.author.send(f"This is a group command. Use `{self.bot.command_prefix}cog load/unload/reload` followed by the name of the cog.")
+ await ctx.author.send(
+ f"This is a group command. Use `{self.bot.command_prefix}cog"
+ " load/unload/reload` followed by the name of the cog."
+ )
@cog.command()
@commands.dm_only()
@@ -47,7 +50,9 @@ class CogCommands(commands.Cog):
@unload.error
async def cog_unload_error(self, ctx, error):
if isinstance(error.original, commands.ExtensionNotLoaded):
- return await ctx.send("Cog not loaded. It might be that the cog does not exist.")
+ return await ctx.send(
+ "Cog not loaded. It might be that the cog does not exist."
+ )
else:
return await ctx.send("An unknown error occurred.")
@@ -66,7 +71,9 @@ class CogCommands(commands.Cog):
@reload.error
async def cog_reload_error(self, ctx, error):
if isinstance(error.original, commands.ExtensionNotLoaded):
- return await ctx.send("Cog not loaded. It might be that the cog does not exist.")
+ return await ctx.send(
+ "Cog not loaded. It might be that the cog does not exist."
+ )
else:
return await ctx.send("An unknown error occurred.")