Daily loop is complete. Properly maintains the current election.

This commit is contained in:
2023-07-26 16:24:57 -04:00
parent 198d5acea0
commit c5d148ad49
2 changed files with 45 additions and 10 deletions
+3
View File
@@ -41,6 +41,7 @@ class ElectionCycle:
self.highcouncil_election_start: datetime = self.highcouncil_election_announce + timedelta(days=3)
self.highcouncil_election_end: datetime = self.term_start - timedelta(days=1)
self.guild: nextcord.Guild = guild
self.election_over: bool = False
def build_election_announcement(self) -> list[str]:
"""
@@ -199,6 +200,8 @@ class ElectionCycle:
"""
Moves the election channel into the archive category.
"""
self.election_over = True
election_channel: nextcord.TextChannel = self.guild.get_channel(self.get_election_info().ElectionChannel)
archive: nextcord.CategoryChannel = self.guild.get_channel(self.config.params.archive_channel_group_id)