aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kraktus <[email protected]>2019-10-21 14:42:05 +0200
committerGravatar kraktus <[email protected]>2019-10-21 14:42:05 +0200
commit3e6e7899927f97be7c3722aad7fe6539e0357e04 (patch)
treecbacf1382a7cbc62b73a7eb9bacc49a8464e39d3
parentCompact `!free` output (diff)
Add a footer and one-line a string
-rw-r--r--bot/cogs/free.py11
1 files 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. "