aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-05-31 18:37:57 +0100
committerGravatar GitHub <[email protected]>2024-05-31 18:37:57 +0100
commit2517e7f86f3f5ac013bdd1df73fe49612f2e2e1a (patch)
tree3a486d82268a2473170da96ac61675fe8711f5fa
parentMerge pull request #193 from python-discord/system-information-support (diff)
Fix timedelta comparison
-rw-r--r--arthur/exts/systems/system_information.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/arthur/exts/systems/system_information.py b/arthur/exts/systems/system_information.py
index 83e3daa..4ccd73f 100644
--- a/arthur/exts/systems/system_information.py
+++ b/arthur/exts/systems/system_information.py
@@ -50,7 +50,7 @@ class SystemInformation(Cog):
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