Change URL commands/command_freegame.py

This commit is contained in:
Stefano Assenzo 2023-03-05 19:26:15 +01:00 committed by GitHub
parent 63d2352b46
commit ae02cc9433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ def freegame_command(message, bot):
chat_id = message.chat.id #Get chat id chat_id = message.chat.id #Get chat id
#Connect to API #Connect to API
try: try:
url = "https://api.plenusbot.xyz/epic_games?country=IT" #URL API url = "https://minty.apexie.dev/v1/epicfreegames" #URL API
response = requests.get(url).json() #API in JSON response = requests.get(url).json() #API in JSON
#Take data from API (Current Game 1) #Take data from API (Current Game 1)
image_currentgames1 = response['games'][0]['mainImage'] # First image current games image_currentgames1 = response['games'][0]['mainImage'] # First image current games