fix(command|help): fix footer embed

This commit is contained in:
Romain J 2020-01-05 01:30:40 +01:00
commit d9221002d2
4 changed files with 23 additions and 28 deletions

View file

@ -20,7 +20,7 @@ class HelpCommand(commands.HelpCommand):
self.owner_cogs = ["Admin"]
def common_command_formatting(self, emb, command):
prefix = self.context.prefix if str(self.context.bot.user.id) in self.context.prefix else f"@{self.context.bot.user.name}"
prefix = self.context.prefix if str(self.context.bot.user.id) not in self.context.prefix else f"@{self.context.bot.user.name}"
emb.title = self.get_command_signature(command)
@ -112,7 +112,7 @@ class HelpCommand(commands.HelpCommand):
async def send_cog_help(self, cog):
pages = {}
prefix = self.context.prefix if str(self.context.bot.user.id) in self.context.prefix else f"@{self.context.bot.user.name}"
prefix = self.context.prefix if str(self.context.bot.user.id) not in self.context.prefix else f"@{self.context.bot.user.name}"
if cog.__class__.__name__ in self.owner_cogs \
and self.context.author not in self.context.bot.owners:

View file

@ -276,7 +276,6 @@ class Logs(commands.Cog):
description=Texts('logs_help').get('_uptime'),
short_doc=Texts('logs_help').get('_uptime__short'))
async def _uptime(self, ctx):
"""Tells you how long the bot has been up for."""
uptime = humanize.naturaltime(
datetime.datetime.utcnow() - self.bot.uptime)
await ctx.send(f'Uptime: **{uptime}**')