Update templates to be used from dakiny messages repo.
This commit is contained in:
@@ -21,6 +21,7 @@ from database_setup.sql_data_classes import (
|
||||
NOMINEE_SPLITTER = "========================================\n\n"
|
||||
REPO_DIR = "./dakiny-messages"
|
||||
MESSAGES_DIR = f"{REPO_DIR}/messages"
|
||||
TEMPLATES_DIR = f"{REPO_DIR}/message_templates"
|
||||
|
||||
|
||||
def get_datetime(day: str) -> datetime:
|
||||
@@ -570,7 +571,7 @@ async def edit_clan_council_info(guild: nextcord.Guild, config: DakinyConfig):
|
||||
quarter = get_cycle_name(config)
|
||||
|
||||
with open(
|
||||
"bot_messages/council_members.txt", mode="r", encoding="utf8"
|
||||
f"{TEMPLATES_DIR}/council_members.txt", mode="r", encoding="utf8"
|
||||
) as file:
|
||||
message = file.read()
|
||||
message = message.format(
|
||||
|
||||
Reference in New Issue
Block a user