@bot.command()<EOL>async def roll(ctx, dice: str):
try:<EOL><INDENT>rolls, limit = map(int, dice.split('<STR_LIT:d>'))<EOL><DEDENT>except Exception:<EOL><INDENT>await ctx.send('<STR_LIT>')<EOL>return<EOL><DEDENT>result = '<STR_LIT:U+002CU+0020>'.join(str(random.randint(<NUM_LIT:1>, limit)) for r in range(rolls))<EOL>await ctx.send(result)<EOL>
Rolls a dice in NdN format.