|
|
@ -7,6 +7,11 @@ def checkversion(__VERSION__: str):
|
|
|
|
response = requests.get(
|
|
|
|
response = requests.get(
|
|
|
|
"https://api.github.com/repos/elebumm/RedditVideoMakerBot/releases/latest"
|
|
|
|
"https://api.github.com/repos/elebumm/RedditVideoMakerBot/releases/latest"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
if response.status_code == 403: # Rate limit
|
|
|
|
|
|
|
|
print(
|
|
|
|
|
|
|
|
f"Skipping script version check because we exceeded GitHub's rate limit. Using version ({__VERSION__})."
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
return
|
|
|
|
latestversion = response.json()["tag_name"]
|
|
|
|
latestversion = response.json()["tag_name"]
|
|
|
|
if __VERSION__ == latestversion:
|
|
|
|
if __VERSION__ == latestversion:
|
|
|
|
print_step(f"You are using the newest version ({__VERSION__}) of the bot")
|
|
|
|
print_step(f"You are using the newest version ({__VERSION__}) of the bot")
|
|
|
|