Remove message builder, move builders to elecion_cycle.py.
build

This commit is contained in:
2023-07-02 11:04:51 -04:00
parent f0beb7821f
commit edc7722f76
4 changed files with 78 additions and 81 deletions
+6 -4
View File
@@ -5,7 +5,7 @@ Commands for testing.
import nextcord
from nextcord.ext import commands
from classes.message_builder import MessageBuilder
from classes.election_cycle import ElectionCycle
class TestCog(commands.Cog, name="Test commands."):
@@ -34,8 +34,10 @@ class TestCog(commands.Cog, name="Test commands."):
interaction (nextcord.Interaction): Interaction that invoked the command.
"""
msg_bulder = MessageBuilder(self.bot.config, 0)
message = msg_bulder.build_vote_start()
cycle = ElectionCycle(0, self.bot)
message = cycle.build_election_announcement()
# 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)
for m in message:
await interaction.channel.send(content=m)