Add sorting to reddit.py

This commit is contained in:
Marco Thomas
2020-10-09 11:25:12 +02:00
parent 59794f8d52
commit 7cfa665060
3 changed files with 25 additions and 13 deletions

View File

@@ -20,9 +20,9 @@ class Admin(commands.Cog):
try:
self.bot.load_extension(cog)
except Exception as e:
await ctx.send(f'**`ERROR:`** {type(e).__name__} - {e}')
await ctx.send(f'**ERROR:** {type(e).__name__} - {e}')
else:
await ctx.send('**`SUCCESS`**')
await ctx.send('**SUCCESS**')
@commands.command(name="unload", hidden=True)
@@ -34,9 +34,9 @@ class Admin(commands.Cog):
try:
self.bot.unload_extension(cog)
except Exception as e:
await ctx.send(f'**`ERROR:`** {type(e).__name__} - {e}')
await ctx.send(f'**ERROR:** {type(e).__name__} - {e}')
else:
await ctx.send('**`SUCCESS`**')
await ctx.send('**SUCCESS**')
@commands.command(name="reload", hidden=True)
@@ -49,9 +49,9 @@ class Admin(commands.Cog):
self.bot.unload_extension(cog)
self.bot.load_extension(cog)
except Exception as e:
await ctx.send(f'**`ERROR:`** {type(e).__name__} - {e}')
await ctx.send(f'**ERROR:** {type(e).__name__} - {e}')
else:
await ctx.send('**`SUCCESS`**')
await ctx.send('**SUCCESS**')
def setup(bot):