Fix formatting and emote usage of vote start message.
build

This commit is contained in:
2023-07-01 22:17:42 -04:00
parent d223a6b14e
commit cb6530ff57
2 changed files with 13 additions and 12 deletions
+12 -12
View File
@@ -26,18 +26,18 @@ class MessageBuilder:
vote_end = self.get_datetime(self.config.election_cycles[self.cycle].voting_end) vote_end = self.get_datetime(self.config.election_cycles[self.cycle].voting_end)
message = f"====================\n\ message = "====================\n"
<@&{self.config.params.clan_member_role_id}>, it's time to vote for clan council.\n\n\ message += f"<@&{self.config.params.clan_member_role_id}>, it's time to vote for clan council.\n\n"
React with <:{self.config.params.voting_emote_id}:> to vote. \ message += f"React with <:{self.config.params.voting_emote_id}> to vote. "
Voting ends next Wednesday , {vote_end.date()}. \ message += f"Voting ends next Wednesday , {vote_end.date()}."
Announcement of the results to whole clan will happen {vote_end.date()}.\n\n\ message += f"Announcement of the results to whole clan will happen {vote_end.date()}.\n\n"
After a candidate receives 3 votes, their spot is secured in the new council, \ message += "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.\n\n\ message += "but you can still vote for them to show your support.\n\n"
**Just a reminder:** only the people listed below are eligible to vote, and each \ message += "**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 \ message += "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. \n\n\ message += "will be annulled.\nVotes for multiple candidates from the same person will not be counted. \n\n"
RS3 Clan Members\n\ message += "RS3 Clan Members\n"
OSRS Clan Members" message += "OSRS Clan Members"
return message return message
+1
View File
@@ -37,4 +37,5 @@ class TestCog(commands.Cog, name="Test commands."):
msg_bulder = MessageBuilder(self.bot.config, 0) msg_bulder = MessageBuilder(self.bot.config, 0)
message = msg_bulder.get_vote_start() message = msg_bulder.get_vote_start()
# doesn't tell discord that the message was responded to. Is a test command so I don't really care atm.
await interaction.channel.send(content=message) await interaction.channel.send(content=message)