Browse Source

switched task loop to run every 5 minutes instead of 10

master
Haku 5 years ago
parent
commit
e0765c3d6b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      founderlessnotify/founderlessnotify.py

+ 2
- 2
founderlessnotify/founderlessnotify.py View File

@@ -117,8 +117,8 @@ class FounderlessNotify(commands.Cog):
async def bg_loop(self): async def bg_loop(self):
"""Main background loop.""" """Main background loop."""
while True: while True:
# Only check once every 10 minutes
await asyncio.sleep(600)
# Only check once every 5 minutes
await asyncio.sleep(300)
current_time = datetime.datetime.utcnow() current_time = datetime.datetime.utcnow()
major_time = await self.config.update_time() major_time = await self.config.update_time()
minor_time = major_time + 12 minor_time = major_time + 12


Loading…
Cancel
Save