Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async def choose_map():
- rnd_map = await temp_password(MAP_DICT)
- server = PREP_SERVER[0]
- map_pick = [[0, ""]]
- for maps, votes in MAP_DICT.items():
- if votes > map_pick[0][0]:
- map_pick = [[votes, maps]]
- if votes == map_pick[0][0]:
- map_pick.append([votes, maps])
- rnd_vote = await temp_password(map_pick)
- if len(map_pick) > 1:
- server["PugMap"] = map_pick[rnd_vote][1]
- elif map_pick != [[0, ""]]:
- server["PugMap"] = map_pick[0][1]
- else:
- server["PugMap"] = list(MAP_DICT)[rnd_map]
- for pugger, vote in PUGGERSDICT.items():
- if vote in MAP_DICT:
- await remove_vote(pugger)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement