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)
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>")
def natural_crit(self): text = critical("natural") self.label['text'] = text send_message_to_discord(text)
def melee_crit(self): text = critical("melee") self.label['text'] = text send_message_to_discord(text)
def ranged_crit(self): text = critical("ranged") self.label['text'] = text send_message_to_discord(text)
def natural_fumble(self): text = fumble("natural") self.label['text'] = text send_message_to_discord(text)
def magic_fumble(self): text = fumble("magic") self.label['text'] = text send_message_to_discord(text)
def ranged_fumble(self): text = fumble("ranged") self.label['text'] = text send_message_to_discord(text)
def melee_fumble(self): text = fumble("melee") self.label['text'] = text send_message_to_discord(text)
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)
def display_innacuracy(self): inaccuracy = artillery_inaccuracy() self.label['text'] = inaccuracy['description'] send_message_to_discord(inaccuracy['description'])
def magic_crit(self): text = critical("magic") self.label['text'] = text send_message_to_discord(text)