Skip to content

Commit

Permalink
v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo2022003 committed Mar 25, 2023
1 parent 74e9446 commit cdae6c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Binary file modified __pycache__/generator.cpython-311.pyc
Binary file not shown.
6 changes: 5 additions & 1 deletion generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ def generator_nickname(NSL_game, word, num, total=10):
count = 0
while count < total:
count += 1
pre_load = f"{choice(NSL_game)}{choice(word)}_{randint(0, 999)}"
random_number = randint(0,1)
if random_number == 1:
pre_load = f"{choice(NSL_game)}{choice(word)}_{randint(0, 999)}"
else:
pre_load = f"{choice(word)}{choice(NSL_game)}_{randint(0, 999)}"
if pre_load in generated_nickname:
continue
else:
Expand Down
2 changes: 1 addition & 1 deletion nicknames.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
["Fantasyplatinum_747", "Shadowknight_245"]
["Gustavogeek_99", "Emeraldgustavo_908", "Firedestroyer_774", "Scorchcode_619", "Pixelgustavo_703"]

0 comments on commit cdae6c4

Please sign in to comment.