From 50a6a5eab5ca626036de002dd6006f62a0d3317d Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 16 Aug 2022 17:36:37 -0500 Subject: [PATCH] Add comment --- tasks/activity.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/activity.py b/tasks/activity.py index 26a8e64..8b54393 100644 --- a/tasks/activity.py +++ b/tasks/activity.py @@ -13,6 +13,7 @@ plugin = lightbulb.Plugin("activity") @tasks.task(s=60) async def check_activity(): for author_id, timestamp in c.db.items(): + # If time between now and timestamp >= duration if dt.datetime.now(dt.timezone.utc) - timestamp >= dt.timedelta(seconds=c.config["duration"]): try: # Acquire member object