Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Xample33 authored Sep 22, 2022
1 parent 1fe323c commit e942532
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from utils import utils as u
import cv2

FAILSAFE = False
FAILSAFE = False
CURRENT_VERSION = 'v2.1'

def config():
if path.exists('config.txt'):
Expand Down Expand Up @@ -125,7 +126,8 @@ def main():
config()
system('cls')
print(u.banner())
input('Press enter to start...')
print(u.check_for_updates(CURRENT_VERSION))
input('\nPress enter to start...')
for i in range(5):
system('cls')
print(u.banner())
Expand Down
7 changes: 7 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from pyautogui import size
from requests import get

class utils:
def banner():
Expand All @@ -17,6 +18,12 @@ def banner():
██║ ██║███████╗██║ ╚████║╚██████╔╝╚███╔███╔╝██║ ╚████║ ██║ ██║ ██║██║ ██║██║ ╚═╝ ██║
╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚══╝╚══╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ by Xample33
"""

def check_for_updates(CURRENT_VERSION):
request = get('https://api.github.com/repos/Xample33/Rainbow-Six-Auto-Renown-Farm/tags').content
if not CURRENT_VERSION in str(request):
return f'This version ({CURRENT_VERSION}) is outdated.\nPlease download the latest version.'
else: return 'This is the latest version.'

def abortkey():
return '+'
Expand Down

0 comments on commit e942532

Please sign in to comment.