Update timerole.py

pull/67/head
Ianardo DiCaprio 6 years ago committed by GitHub
parent 5c68cca178
commit 42e7d9262f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -193,17 +193,8 @@ class Timerole(Cog):
async def check_day(self):
while self is self.bot.get_cog("Timerole"):
tomorrow = datetime.now() + timedelta(days=1)
midnight = datetime(
year=tomorrow.year,
month=tomorrow.month,
day=tomorrow.day,
hour=0,
minute=0,
second=0,
)
await asyncio.sleep((midnight - datetime.now()).seconds)
print("Hmmmm")
await asyncio.sleep(30)
await self.timerole_update()

Loading…
Cancel
Save