This commit is contained in:
insert 2024-08-10 23:15:30 -04:00
parent a1d80c0d05
commit 51eb0c0f0e
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -102,7 +102,7 @@ class gameutils(commands.Cog):
async def turngen(self, interaction: nextcord.Interaction, number: int, sides: int, hidden: str = nextcord.SlashOption(choices=["Yes", "No"])): async def turngen(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" message = f"May the odds ever be in your favor...\n"
for d in range(number): for d in range(number):
message = message + f":game_die:{str(d+1)}. {str(random.randint(1, sides))}\n" message = message + f":game_die: {str(d+1)}. {str(random.randint(1, sides))}\n"
if hidden == "Yes": if hidden == "Yes":
await interaction.response.send_message(message, ephemeral=True) await interaction.response.send_message(message, ephemeral=True)
else: else: