Add message builder.
build

This commit is contained in:
2023-06-28 20:59:01 -04:00
parent 52aa4742e5
commit bb6bf2b3d8
+27
View File
@@ -0,0 +1,27 @@
class MessageBuilder:
"""
Contains all the announcements that the bot will send regarding elections.
"""
def get_vote_start(self) -> str:
"""
Builds the voting start message out of template and configurations.
Returns:
str: Message to send
"""
message = "<@&{{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"
return message