@@ -2,7 +2,7 @@
|
||||
_summary_
|
||||
"""
|
||||
|
||||
from datetime import datetime, time
|
||||
from datetime import time
|
||||
|
||||
from nextcord.ext import commands, tasks
|
||||
from pytz import timezone
|
||||
@@ -17,7 +17,8 @@ class DailyLoop(commands.Cog, name="Daily Loop"):
|
||||
|
||||
def __init__(self, bot: commands.Bot) -> None:
|
||||
self.bot = bot
|
||||
self.election = ElectionCycle(datetime(2023, 5, 25), datetime(2023, 5, 29), datetime(2023, 5, 30), self.bot)
|
||||
# TODO need to figure out how to determine the current cycle
|
||||
self.current_election = ElectionCycle(0, self.bot)
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_ready(self):
|
||||
@@ -32,4 +33,5 @@ class DailyLoop(commands.Cog, name="Daily Loop"):
|
||||
async def do_thing(self):
|
||||
""" """
|
||||
print("loop")
|
||||
await self.election.check_date()
|
||||
await self.current_election.check_date()
|
||||
# TODO need to figure out how to change the election cycle after current one is over
|
||||
|
||||
Reference in New Issue
Block a user