aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Harbys <[email protected]>2021-01-10 20:08:01 +0100
committerGravatar Harbys <[email protected]>2021-01-10 20:08:01 +0100
commit074ce91205539ca06c1c048c62b7e649c4ae78b5 (patch)
tree6a7742c4835b05846319d33d2ff74746d0040327
parentindent fix (diff)
add 30 minute default for stream command
-rw-r--r--bot/exts/moderation/stream.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/moderation/stream.py b/bot/exts/moderation/stream.py
index d8c2a8628..d8ffe32ff 100644
--- a/bot/exts/moderation/stream.py
+++ b/bot/exts/moderation/stream.py
@@ -1,3 +1,5 @@
+import datetime
+
import discord
from discord.ext import commands
@@ -32,7 +34,7 @@ class Stream(commands.Cog):
self,
ctx: commands.Context,
user: discord.Member,
- duration: Expiry,
+ duration: Expiry = datetime.datetime.utcnow() + datetime.timedelta(minutes=30),
*_
) -> None:
"""