Ejemplo n.º 1
0
def main():
  if len(sys.argv) < 3:
    print("Usage: selector <number of slots> <player names>")
  available_slots = int(sys.argv[1])
  interested_players = get_interested_parties()
  selected_players = select_x(available_slots, interested_players)
  output = "Selecting from {}\n".format(interested_players)
  for i in range(len(selected_players)):
    output += "Chose player {}\n".format(selected_players[i])
  print(output)
  send_message_to_discord(output)
Ejemplo n.º 2
0
def main():
  if(len(sys.argv) == 4):
    num_rolls = int(sys.argv[1])
    modifier = int(sys.argv[2])
    dc = int(sys.argv[3])
    result = roll_mass(num_rolls, modifier, dc, True, False)
    message = format_message(result)
    print(message)
    send_message_to_discord(message)
  else:
    print("Usage: <Number of rolls> <modifier> <DC>")
Ejemplo n.º 3
0
 def natural_crit(self):
     text = critical("natural")
     self.label['text'] = text
     send_message_to_discord(text)
Ejemplo n.º 4
0
 def melee_crit(self):
     text = critical("melee")
     self.label['text'] = text
     send_message_to_discord(text)
Ejemplo n.º 5
0
 def ranged_crit(self):
     text = critical("ranged")
     self.label['text'] = text
     send_message_to_discord(text)
Ejemplo n.º 6
0
 def natural_fumble(self):
     text = fumble("natural")
     self.label['text'] = text
     send_message_to_discord(text)
Ejemplo n.º 7
0
 def magic_fumble(self):
     text = fumble("magic")
     self.label['text'] = text
     send_message_to_discord(text)
Ejemplo n.º 8
0
 def ranged_fumble(self):
     text = fumble("ranged")
     self.label['text'] = text
     send_message_to_discord(text)
Ejemplo n.º 9
0
 def melee_fumble(self):
     text = fumble("melee")
     self.label['text'] = text
     send_message_to_discord(text)
Ejemplo n.º 10
0
 def normal(self):
     args = self.get_args()
     text = roll_mass(int(args["quantity"]), int(args["mod"]),
                      int(args["ac"]), False, False)["description"]
     self.output['text'] = text
     send_message_to_discord(text)
Ejemplo n.º 11
0
 def display_innacuracy(self):
     inaccuracy = artillery_inaccuracy()
     self.label['text'] = inaccuracy['description']
     send_message_to_discord(inaccuracy['description'])
Ejemplo n.º 12
0
 def magic_crit(self):
     text = critical("magic")
     self.label['text'] = text
     send_message_to_discord(text)