Finaly work!

This commit is contained in:
Stefano Assenzo 2022-08-24 14:14:11 +02:00
parent 282a234a02
commit 54567bb204
4 changed files with 2 additions and 1 deletions

BIN
epic_games.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

BIN
index.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -2,10 +2,11 @@ import requests
from win10toast import ToastNotifier
filename = 'epic_games.ico'
url = "https://api.plenusbot.xyz/epic_games?country=IT"
response = requests.get(url).json()
# Title of current games
current_games_title = response['currentGames'][0]['title']
toast = ToastNotifier()
toast.show_toast(title="New games!", msg="There is a new game on Epic Games Store " + current_games_title , icon_path="")
toast.show_toast(title="New games!", msg="There is a new game on Epic Games Store " + current_games_title , icon_path=filename,duration=10,threaded=False)