From 3e6e7899927f97be7c3722aad7fe6539e0357e04 Mon Sep 17 00:00:00 2001 From: kraktus <56031107+kraktus@users.noreply.github.com> Date: Mon, 21 Oct 2019 14:42:05 +0200 Subject: Add a footer and one-line a string --- bot/cogs/free.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/bot/cogs/free.py b/bot/cogs/free.py index afd54671a..f8031a32a 100644 --- a/bot/cogs/free.py +++ b/bot/cogs/free.py @@ -79,18 +79,15 @@ class Free(Cog): if len(sorted_channels) > 3: # display 3 channels max sorted_channels = sorted_channels[:3] - for i, (inactive, channel) in enumerate(sorted_channels, 1): + for (inactive, channel) in sorted_channels: minutes, seconds = divmod(inactive, 60) if minutes > 59: hours, minutes = divmod(minutes, 60) - embed.description += f"{i}. {channel.mention} **{hours}h {minutes}m {seconds}s** inactive\n" + embed.description += f"{channel.mention} **{hours}h {minutes}m {seconds}s** inactive\n" else: - embed.description += f"{i}. {channel.mention} **{minutes}m {seconds}s** inactive\n" + embed.description += f"{channel.mention} **{minutes}m {seconds}s** inactive\n" - embed.description += ( - "Please confirm these channels " - "are free before posting" - ) + embed.set_footer(text="Please confirm these channels are free before posting") else: embed.description = ( "**Doesn't look like any channels are available right now. " -- cgit v1.2.3