Added windows specifics
This commit is contained in:
+11
-1
@@ -1,4 +1,6 @@
|
|||||||
import json
|
import json
|
||||||
|
import sys
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import re
|
import re
|
||||||
import random
|
import random
|
||||||
@@ -6,6 +8,8 @@ import random
|
|||||||
import aiohttp
|
import aiohttp
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
class Champion:
|
class Champion:
|
||||||
Name: str
|
Name: str
|
||||||
@@ -71,7 +75,13 @@ def get_player_list() -> [Champion]:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
print("Generator started, gathering Champions!")
|
||||||
|
print("This can take some time!")
|
||||||
|
|
||||||
champions: [Champion] = get_player_list()
|
champions: [Champion] = get_player_list()
|
||||||
champ: Champion = random.choice(champions)
|
champ: Champion = random.choice(champions)
|
||||||
|
|
||||||
print(f'You will play:\n\tChampion: {champ.Name}\n\tRole: {random.choice(champ.Role)}\n\tLane: {random.choice(Lanes)}')
|
print(f'You will play:\n\tChampion: {champ.Name}\n\tRole: {random.choice(champ.Role)}\n\tLane: {random.choice(Lanes)}')
|
||||||
|
|
||||||
|
if(os.name == "nt"):
|
||||||
|
os.system("pause")
|
||||||
Reference in New Issue
Block a user