Skip to content

Commit

Permalink
use rollset
Browse files Browse the repository at this point in the history
  • Loading branch information
mralext20 committed Jul 15, 2023
1 parent d71a834 commit 9dfbd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alexBot/cogs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def roll(self, interaction: discord.Interaction, dice: str):
roll_results: List[Roll] = []
for rollset in dice.split(" "):
try:
rolls, limit = map(int, dice.split("d"))
rolls, limit = map(int, rollset.split("d"))
except Exception:
return await interaction.response.send_message("Format has to be in `WdX YdZ`...!", ephemeral=True)
roll_results.append(Roll(f"{rolls}d{limit}", [random.randint(1, limit) for r in range(rolls)]))
Expand Down

0 comments on commit 9dfbd88

Please sign in to comment.