1
0
Fork 0

How I have done this ._.

This commit is contained in:
Ethanell 2020-05-26 17:54:25 +02:00
parent 4e9f302854
commit 533f0c10c9

View file

@ -27,7 +27,7 @@ class Extension(commands.Cog):
async def extension_load(self, ctx: commands.Context, name: str):
try:
self.bot.load_extension(name)
except Extension as e:
except Exception as e:
await ctx.message.add_reaction("\u26a0")
else:
await ctx.message.add_reaction("\U0001f44d")
@ -37,7 +37,7 @@ class Extension(commands.Cog):
async def extension_unload(self, ctx: commands.Context, name: str):
try:
self.bot.unload_extension(name)
except Extension as e:
except Exception as e:
await ctx.message.add_reaction("\u26a0")
else:
await ctx.message.add_reaction("\U0001f44d")
@ -48,7 +48,7 @@ class Extension(commands.Cog):
try:
self.bot.unload_extension(name)
self.bot.load_extension(name)
except Extension as e:
except Exception as e:
await ctx.message.add_reaction("\u26a0")
else:
await ctx.message.add_reaction("\U0001f44d")