From cb6530ff57ba1c995111b8ec138898b37b224b98 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Sat, 1 Jul 2023 22:17:42 -0400 Subject: [PATCH] Fix formatting and emote usage of vote start message. --- bot_messages/message_builder.py | 24 ++++++++++++------------ cogs/commands/test.py | 1 + 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/bot_messages/message_builder.py b/bot_messages/message_builder.py index b48143b..dda3ebc 100644 --- a/bot_messages/message_builder.py +++ b/bot_messages/message_builder.py @@ -26,18 +26,18 @@ class MessageBuilder: vote_end = self.get_datetime(self.config.election_cycles[self.cycle].voting_end) - message = f"====================\n\ - <@&{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. \ - Voting ends next Wednesday , {vote_end.date()}. \ - 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, \ - 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 \ - 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\ - RS3 Clan Members\n\ - OSRS Clan Members" + message = "====================\n" + message += f"<@&{self.config.params.clan_member_role_id}>, it's time to vote for clan council.\n\n" + message += f"React with <:{self.config.params.voting_emote_id}> to vote. " + message += f"Voting ends next Wednesday , {vote_end.date()}." + message += f"Announcement of the results to whole clan will happen {vote_end.date()}.\n\n" + message += "After a candidate receives 3 votes, their spot is secured in the new council, " + message += "but you can still vote for them to show your support.\n\n" + message += "**Just a reminder:** only the people listed below are eligible to vote, and each " + message += "clan member may **only vote for one person**. Votes from guests, diplomats, or allies " + message += "will be annulled.\nVotes for multiple candidates from the same person will not be counted. \n\n" + message += "RS3 Clan Members\n" + message += "OSRS Clan Members" return message diff --git a/cogs/commands/test.py b/cogs/commands/test.py index c523e1b..ed15292 100644 --- a/cogs/commands/test.py +++ b/cogs/commands/test.py @@ -37,4 +37,5 @@ class TestCog(commands.Cog, name="Test commands."): msg_bulder = MessageBuilder(self.bot.config, 0) 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)