Update templates to be used from dakiny messages repo.

This commit is contained in:
2024-05-16 16:25:50 -04:00
parent be408307aa
commit 1e1407c918
2 changed files with 7 additions and 5 deletions
+5 -4
View File
@@ -21,6 +21,7 @@ from database_setup.sql_data_classes import (
engine,
)
from utils import (
TEMPLATES_DIR,
build_highcouncil_votes_str,
build_votes_str,
edit_clan_council_info,
@@ -77,7 +78,7 @@ class ElectionCycle:
"""
with open(
"bot_messages/election_announcement.txt", mode="r", encoding="utf8"
f"{TEMPLATES_DIR}/election_announcement.txt", mode="r", encoding="utf8"
) as file:
message = file.read()
@@ -110,7 +111,7 @@ class ElectionCycle:
"""
with open(
"bot_messages/highcouncil_election.txt", mode="r", encoding="utf8"
f"{TEMPLATES_DIR}/highcouncil_election.txt", mode="r", encoding="utf8"
) as file:
message = file.read()
@@ -137,7 +138,7 @@ class ElectionCycle:
"""
with open(
"bot_messages/highcouncil_vote.txt", mode="r", encoding="utf8"
f"{TEMPLATES_DIR}/highcouncil_vote.txt", mode="r", encoding="utf8"
) as file:
message = file.read()
@@ -154,7 +155,7 @@ class ElectionCycle:
str: Message to send
"""
with open("bot_messages/vote_start.txt", mode="r", encoding="utf8") as file:
with open(f"{TEMPLATES_DIR}/vote_start.txt", mode="r", encoding="utf8") as file:
message = file.read()
vote_end: datetime = get_datetime(
self.config.election_cycles[self.cycle].voting_end