From 282a234a02ba4aea3ce40ebd2b6cf8831d9e9472 Mon Sep 17 00:00:00 2001 From: Stefano Assenzo Date: Wed, 24 Aug 2022 12:34:06 +0200 Subject: [PATCH] YEA I FIX IT --- index.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/index.py b/index.py index b020174..4d76950 100644 --- a/index.py +++ b/index.py @@ -1,12 +1,11 @@ -#Every 10s check if there are new games import requests -#Libraries for Windows notification + from win10toast import ToastNotifier url = "https://api.plenusbot.xyz/epic_games?country=IT" response = requests.get(url).json() # Title of current games -current_games = response['currentGames'][0]['title'] +current_games_title = response['currentGames'][0]['title'] -toaster = ToastNotifier() -toaster.show_toast("New free game on the Epic Games Store:", current_games, icon_path="epicgames.png") \ No newline at end of file +toast = ToastNotifier() +toast.show_toast(title="New games!", msg="There is a new game on Epic Games Store " + current_games_title , icon_path="") \ No newline at end of file