This commit is contained in:
@@ -172,7 +172,16 @@ class ElectionCycle:
|
|||||||
"""
|
"""
|
||||||
Performs required actions for when voting time has ended.
|
Performs required actions for when voting time has ended.
|
||||||
"""
|
"""
|
||||||
print("voting has ended")
|
message = self.build_highcouncil_election_announce()
|
||||||
|
council_elect_role: nextcord.Role = self.guild.get_role(self.config.params.clan_council_elect_role_id)
|
||||||
|
with Session(engine) as session:
|
||||||
|
stmt = select(ElectionInformation).where(
|
||||||
|
ElectionInformation.ElectionCycle == self.get_election_cycle_name()
|
||||||
|
)
|
||||||
|
election_info = session.scalar(stmt)
|
||||||
|
election_channel = self.guild.get_channel(election_info.ElectionChannel)
|
||||||
|
await election_channel.send(message)
|
||||||
|
await election_channel.set_permissions(council_elect_role, send_messages=True)
|
||||||
|
|
||||||
async def highcouncil_election_action(self) -> None:
|
async def highcouncil_election_action(self) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user