diff --git a/epicgames.png b/epicgames.png new file mode 100644 index 0000000..d9e89e6 Binary files /dev/null and b/epicgames.png differ diff --git a/index.ico b/index.ico new file mode 100644 index 0000000..d9e89e6 Binary files /dev/null and b/index.ico differ diff --git a/index.py b/index.py index 8737aa7..b020174 100644 --- a/index.py +++ b/index.py @@ -1,3 +1,12 @@ +#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'] + toaster = ToastNotifier() -toaster.show_toast("Sample Notification","Python is awesome!!!") \ No newline at end of file +toaster.show_toast("New free game on the Epic Games Store:", current_games, icon_path="epicgames.png") \ No newline at end of file