Skip to content

Commit

Permalink
[WarnSystem] Fix issue with automod antispam info
Browse files Browse the repository at this point in the history
The warn duration was not properly handled.
Resolves #85
  • Loading branch information
laggron42 committed Jun 24, 2020
1 parent 6d35455 commit 1ae59d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion warnsystem/automod.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,9 @@ async def automod_antispam_info(self, ctx: commands.Context):
reason = antispam_settings["warn"]["reason"]
if level == 2 or level == 5:
time = _("Time: {time}\n").format(
time=self.api._format_timedelta(antispam_settings["warn"]["time"])
time=self.api._format_timedelta(
timedelta(seconds=antispam_settings["warn"]["time"])
)
if antispam_settings["warn"]["time"]
else _("Unlimited.")
)
Expand Down

0 comments on commit 1ae59d1

Please sign in to comment.