aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Harbys <[email protected]>2021-02-08 19:40:16 +0100
committerGravatar Harbys <[email protected]>2021-02-08 19:40:16 +0100
commit8ac25aeaecd6be518a3adb366ff5426bbc76b2c1 (patch)
tree4264f6cfb70cdd321148340ab0730f38471c5194
parentMerge remote-tracking branch 'origin/master' (diff)
parentchange for style guidelines by @MarkKoz (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to '')
-rw-r--r--bot/exts/moderation/stream.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/stream.py b/bot/exts/moderation/stream.py
index 0ee2a5612..8b8308925 100644
--- a/bot/exts/moderation/stream.py
+++ b/bot/exts/moderation/stream.py
@@ -56,8 +56,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)