From 2517e7f86f3f5ac013bdd1df73fe49612f2e2e1a Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Fri, 31 May 2024 18:37:57 +0100 Subject: Fix timedelta comparison --- arthur/exts/systems/system_information.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arthur/exts/systems/system_information.py') 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 -- cgit v1.2.3