diff options
| author | 2021-02-08 19:40:07 +0100 | |
|---|---|---|
| committer | 2021-02-08 19:40:07 +0100 | |
| commit | 898adc69661e06ee6d5bd0962d265bae5faed16c (patch) | |
| tree | c6fdc621a5526b2e2e053950079a7d909b958800 | |
| parent | add space for readablility (diff) | |
change for style guidelines by @MarkKoz
Co-authored-by: Mark <[email protected]>
| -rw-r--r-- | bot/exts/moderation/stream.py | 4 |
1 files 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) |