aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-04-01 16:51:44 +0100
committerGravatar Chris <[email protected]>2021-04-01 16:51:44 +0100
commit9f8ef6cae6eb2137fb0e2a8efdb29c22759f9783 (patch)
tree03c8c4463b00f53318ececae4c824794b7262dce
parentChange references to user's in Stream cog to members (diff)
Remove unnecessary wrapper variable
-rw-r--r--bot/exts/moderation/stream.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/moderation/stream.py b/bot/exts/moderation/stream.py
index 61dadc358..008ee8afe 100644
--- a/bot/exts/moderation/stream.py
+++ b/bot/exts/moderation/stream.py
@@ -85,8 +85,9 @@ class Stream(commands.Cog):
log.trace(f"Attempting to give temporary streaming permission to {member} ({member.id}).")
# If duration is none then calculate default duration
if duration is None:
- now = datetime.datetime.utcnow()
- duration = now + datetime.timedelta(minutes=VideoPermission.default_permission_duration)
+ duration = datetime.datetime.utcnow() + datetime.timedelta(
+ minutes=VideoPermission.default_permission_duration
+ )
# Check if the member already has streaming permission
already_allowed = any(Roles.video == role.id for role in member.roles)