diff --git a/gameutils.py b/gameutils.py index ae0f117..9c7b6d1 100644 --- a/gameutils.py +++ b/gameutils.py @@ -17,8 +17,9 @@ class GameView(nextcord.ui.View): ) async def nextturn(self, button: nextcord.ui.Button, interaction: nextcord.Interaction): ogmsg = interaction.message.content.split("\n") + turnmessage = ogmsg[0] ogmsg.pop(0) - message = "It has been decreed..\n" + message = f"{turnmessage}\n" found = False turnover = False for i in range(len(ogmsg)): @@ -62,12 +63,12 @@ class gameutils(commands.Cog): @nextcord.slash_command( name="turngen", description="Roll the next turn for a certian role", - guild_ids=[1247883904178978927], + guild_ids=[1247883904178978927,699285282276507708], default_member_permissions=nextcord.Permissions(manage_roles=True), ) @nextcord.ext.application_checks.has_permissions(manage_roles=True) - async def turngen(self, interaction: nextcord.Interaction, role: nextcord.Role): - message = "It has been decreed..\n" + async def turngen(self, interaction: nextcord.Interaction, role: nextcord.Role, turnmessage: str): + message = f"{turnmessage}\n" users = role.members random.shuffle(users) for i in range(len(users)):