-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added updates for module edition and shortened code
- Loading branch information
1 parent
b88c414
commit 8160b94
Showing
5 changed files
with
88 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import requests, json | ||
from colorama import Fore, init | ||
|
||
init(autoreset=True) | ||
|
||
# opening settings.json file | ||
jsfile = json.load(open("settings.json")) | ||
## | ||
|
||
# getting new release json | ||
response = requests.get("https://api.github.com/repos/SpamixOfficial/OpenClick/releases/latest") | ||
respdata = response.json() | ||
## | ||
|
||
# getting new release info | ||
newid = respdata["id"] | ||
|
||
if not str(jsfile["release"]) == str(newid): | ||
print(Fore.YELLOW + "New release available to download! " + Fore.RED + "\nConsider updating using the \"update.py\" file since we dont support older versions of our software!") | ||
else: | ||
print("Version is up to date!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters