Fate-Dice-Rolls #15
@ -90,6 +90,7 @@ class CommandRoll(AbstractCommand, metaclass=ABCMeta):
|
||||
#await discord_message.channel.send(diceRoll)
|
||||
|
||||
async def roll(self, roll_type, discord_message: discord.Message):
|
||||
diceRoll = ""
|
||||
switch = {
|
||||
1: "Standard",
|
||||
2: "Fate Dice"
|
||||
@ -139,11 +140,13 @@ class CommandRoll(AbstractCommand, metaclass=ABCMeta):
|
||||
print(diceRoll)
|
||||
|
||||
if roll_type == 2:
|
||||
print("fate Rolling....")
|
||||
# !roll 4df
|
||||
# If roll is in xdx+x format
|
||||
if loopBool == True:
|
||||
rolls: list = []
|
||||
for x in range(int(parsedMessage[0])):
|
||||
rolls.append(random.randint(1, 3)) # This is the roller
|
||||
rolls.append(random.randint(-1, 1)) # This is the roller
|
||||
|
||||
rollTotal = 0
|
||||
for roll in rolls:
|
||||
@ -158,7 +161,7 @@ class CommandRoll(AbstractCommand, metaclass=ABCMeta):
|
||||
diceRoll = diceRoll + " = " + str(rollTotal)
|
||||
# If roll is in dx+x format
|
||||
if loopBool == False:
|
||||
roll: int = random.randint(1, 3) # This is the roller
|
||||
roll: int = random.randint(-1, 1) # This is the roller
|
||||
|
||||
if len(temp_preParsedMessage) == 2:
|
||||
diceRoll = str(roll) + " + " + temp_preParsedMessage[1] + " = " + str(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user