Skip to content

Commit

Permalink
Fix timedelta comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 authored May 31, 2024
1 parent be57dd9 commit 2517e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arthur/exts/systems/system_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def on_message(self, msg: Message) -> None:
return

if self.last_sent:
if (datetime.utcnow() - self.last_sent).minutes < MIN_MINUTES:
if (datetime.utcnow() - self.last_sent).seconds // 60 < MIN_MINUTES:
logger.trace("Ignoring message as within cooldown")
return

Expand Down

0 comments on commit 2517e7f

Please sign in to comment.