Compare commits
4 Commits
da08250dbc
...
5e3cf25cda
Author | SHA1 | Date |
---|---|---|
Stefano Assenzo | 5e3cf25cda | |
Stefano Assenzo | ae02cc9433 | |
Stefano Assenzo | 63d2352b46 | |
Stefano Assenzo | f1bf4a5d9a |
|
@ -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
|
||||||
|
|
|
@ -4,7 +4,7 @@ def soon_command(message, bot):
|
||||||
chat_id = message.chat.id #Get chat id
|
chat_id = message.chat.id #Get chat id
|
||||||
try:
|
try:
|
||||||
# Get data from API
|
# Get data from API
|
||||||
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 (Future Game 1)
|
#Take data from API (Future Game 1)
|
||||||
|
|
|
@ -11,7 +11,7 @@ def recheck_game(collection_game, collection_id, bot):
|
||||||
def a(collection_game, collection_id, bot):
|
def a(collection_game, collection_id, bot):
|
||||||
try:
|
try:
|
||||||
#Connect to API
|
#Connect to API
|
||||||
url = "https://minty.apexie.eu/v1/epicfreegames" #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
|
||||||
|
|
||||||
# Title of current games
|
# Title of current games
|
||||||
|
|
|
@ -6,7 +6,7 @@ def notification_game1(collection_game, collection_id, bot):
|
||||||
try:
|
try:
|
||||||
print("Try to send first game")
|
print("Try to send first game")
|
||||||
|
|
||||||
url = "https://minty.apexie.eu/v1/epicfreegames"
|
url = "https://minty.apexie.dev/v1/epicfreegames"
|
||||||
response = requests.get(url).json()
|
response = requests.get(url).json()
|
||||||
|
|
||||||
#All information for first game
|
#All information for first game
|
||||||
|
|
Loading…
Reference in New Issue