Ok I put some comments
This commit is contained in:
parent
4162eae0ca
commit
a27f7a4bba
4
index.py
4
index.py
|
@ -34,6 +34,7 @@ def send_notification2():
|
||||||
f.write(current_games_title2)
|
f.write(current_games_title2)
|
||||||
check_game3()
|
check_game3()
|
||||||
|
|
||||||
|
#Check if there is the third free game
|
||||||
def check_game3():
|
def check_game3():
|
||||||
#Check third game
|
#Check third game
|
||||||
try:
|
try:
|
||||||
|
@ -56,11 +57,12 @@ def send_notification3():
|
||||||
filename = 'epic_games.ico'
|
filename = 'epic_games.ico'
|
||||||
#Create notification on Windows
|
#Create notification on Windows
|
||||||
toast = ToastNotifier()
|
toast = ToastNotifier()
|
||||||
toast.show_toast(title="New games!", msg="The new game is: " + current_games_title2 , icon_path=filename,duration=10,threaded=False)
|
toast.show_toast(title="New games!", msg="The new game is: " + current_games_title3 , icon_path=filename,duration=10,threaded=False)
|
||||||
with open('game3.txt', 'w') as f:
|
with open('game3.txt', 'w') as f:
|
||||||
f.write(current_games_title3)
|
f.write(current_games_title3)
|
||||||
recheck_game()
|
recheck_game()
|
||||||
|
|
||||||
|
|
||||||
#Check game and if there are new games send the notification
|
#Check game and if there are new games send the notification
|
||||||
def check_game():
|
def check_game():
|
||||||
print("Connect to the api")
|
print("Connect to the api")
|
||||||
|
|
Loading…
Reference in New Issue