예제 #1
0
 def test_MultipleDicesOfDifferentSides(self):
     rolls = roller.rollDices("!r 3d6 5d5")
     self.assertEqual(len(rolls), 2)
     self.assertEqual(len(rolls[0]), 3)
     self.assertEqual(len(rolls[1]), 5)
예제 #2
0
 def test_SingleDicesOfDifferentSides(self):
     rolls = roller.rollDices("!r d6 d5")
     self.assertEqual(len(rolls), 2)
     self.assertEqual(len(rolls[0]), 1)
     self.assertEqual(len(rolls[1]), 1)
예제 #3
0
 def test_SingleDice(self):
     rolls = roller.rollDices("!r d6")
     self.assertEqual(len(rolls), 1)
     self.assertEqual(len(rolls[0]), 1)
예제 #4
0
 def test_MultipleDicesOfSameSides(self):
     rolls = roller.rollDices("!r 5d6")
     self.assertEqual(len(rolls), 1)
     self.assertEqual(len(rolls[0]), 5)
예제 #5
0
    async def r(self, ctx: Context):
        """
        Report feedback or issues with the bot
        """

        await ctx.send(roller.rollDices(ctx.message.content))