@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user