From 3924ec59553b6305409102f3ff4eddeb2ed4b8b2 Mon Sep 17 00:00:00 2001 From: insert Date: Mon, 12 Aug 2024 14:59:05 -0400 Subject: [PATCH] Update --- gameutils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: