From 79525c64d211f640edadac450c70ca4743ab8218 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Sat, 27 May 2023 12:31:00 -0400 Subject: [PATCH] Add vote start message. Add comments. --- bot_messages/vote_start.txt | 12 ++++++++++++ classes/election_cycle.py | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 bot_messages/vote_start.txt diff --git a/bot_messages/vote_start.txt b/bot_messages/vote_start.txt new file mode 100644 index 0000000..5cd100d --- /dev/null +++ b/bot_messages/vote_start.txt @@ -0,0 +1,12 @@ +<@&{{clan_member_id}}>, it's time to vote for clan council. + +React with <:Rank_Admin:479008185240518656> to vote. +Voting ends next Wednesday , {{voting_end_date}}. +Announcement of the results to whole clan will happen April 6th. + +After a candidate receives 3 votes, their spot is secured in the new council, but you can still vote for them to show your support. + +**Just a reminder:** only the people listed below are eligible to vote, and each clan member may **only vote for one person**. Votes from guests, diplomats, or allies will be annulled. Votes for multiple candidates from the same person will not be counted. + +RS3 Clan Members +OSRS Clan Members \ No newline at end of file diff --git a/classes/election_cycle.py b/classes/election_cycle.py index 48d412f..d02e7db 100644 --- a/classes/election_cycle.py +++ b/classes/election_cycle.py @@ -26,7 +26,7 @@ class ElectionCycle: """ self._election_start: datetime = election_start self._term_start: datetime = term_start - self._term_end: datetime = term_end # might not be needed + self._term_end: datetime = term_end self._voting_start: datetime = self._election_start + timedelta(days=1) self._voting_end: datetime = self._voting_start + timedelta(days=1) self._highcouncil_election: datetime = self._voting_end + timedelta(days=1) @@ -62,6 +62,7 @@ class ElectionCycle: """ print("election cycle has started") await self.message_me("election cycle has started") + # TODO get message, input variables, split into multiple messages, send to correct channel. async def voting_start_action(self) -> None: """