소스 검색

switched task loop to run every 5 minutes instead of 10

master
Haku 5 년 전
부모
커밋
e0765c3d6b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      founderlessnotify/founderlessnotify.py

+ 2
- 2
founderlessnotify/founderlessnotify.py 파일 보기

@@ -117,8 +117,8 @@ class FounderlessNotify(commands.Cog):
async def bg_loop(self):
"""Main background loop."""
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()
major_time = await self.config.update_time()
minor_time = major_time + 12


불러오는 중...
취소
저장