diff options
| author | 2021-01-10 20:08:01 +0100 | |
|---|---|---|
| committer | 2021-01-10 20:08:01 +0100 | |
| commit | 074ce91205539ca06c1c048c62b7e649c4ae78b5 (patch) | |
| tree | 6a7742c4835b05846319d33d2ff74746d0040327 | |
| parent | indent fix (diff) | |
add 30 minute default for stream command
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/moderation/stream.py | 4 |
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: """ |