diff --git a/gameutils.py b/gameutils.py index 5b06ac5..0e0e459 100644 --- a/gameutils.py +++ b/gameutils.py @@ -160,8 +160,12 @@ class gameutils(commands.Cog): ) async def diceroll(self, interaction: nextcord.Interaction, number: int, sides: int, hidden: str = nextcord.SlashOption(choices=["Yes", "No"])): message = f"May the odds ever be in your favor...\n" + fullnum = 0 for d in range(number): - message = message + f":game_die: {str(d+1)}. {str(random.randint(1, sides))}\n" + num = random.randint(1, sides) + fullnum = fullnum + num + message = message + f":game_die: {str(d+1)}. {str(num)}\n" + message = message + f"sum: {fullnum}" if hidden == "Yes": await interaction.response.send_message(message, ephemeral=True) else: