From 58ef6c8428dab4216cb0378d8c7b2b6748023e8e Mon Sep 17 00:00:00 2001 From: Ano-sys Date: Wed, 16 Apr 2025 16:07:14 +0200 Subject: [PATCH] Added windows specifics --- generator.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/generator.py b/generator.py index 6da3542..f45fbeb 100644 --- a/generator.py +++ b/generator.py @@ -1,4 +1,6 @@ import json +import sys + import requests import re import random @@ -6,6 +8,8 @@ import random import aiohttp import asyncio +import os + class Champion: Name: str @@ -71,7 +75,13 @@ def get_player_list() -> [Champion]: if __name__ == "__main__": + print("Generator started, gathering Champions!") + print("This can take some time!") + champions: [Champion] = get_player_list() 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)}') \ No newline at end of file + 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") \ No newline at end of file