From 898adc69661e06ee6d5bd0962d265bae5faed16c Mon Sep 17 00:00:00 2001 From: Harbys <44087388+Harbys@users.noreply.github.com> Date: Mon, 8 Feb 2021 19:40:07 +0100 Subject: change for style guidelines by @MarkKoz Co-authored-by: Mark --- bot/exts/moderation/stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/exts/moderation/stream.py b/bot/exts/moderation/stream.py index 7e15864bf..6a889fe2f 100644 --- a/bot/exts/moderation/stream.py +++ b/bot/exts/moderation/stream.py @@ -60,8 +60,8 @@ class Stream(commands.Cog): # Schedule task to remove streaming permission from Member self.scheduler.schedule_at(duration, user.id, self._remove_streaming_permission(user)) await user.add_roles(discord.Object(Roles.video), reason="Temporary streaming access granted") - await ctx.send(f"{Emojis.check_mark}{user.mention} can now stream until " - f"{format_infraction_with_duration(str(duration))}.") + duration = format_infraction_with_duration(str(duration)) + await ctx.send(f"{Emojis.check_mark} {user.mention} can now stream until {duration}.") @commands.command(aliases=("unstream", )) @commands.has_any_role(*STAFF_ROLES) -- cgit v1.2.3