Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
Update to 1.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
cranberry3148 committed Oct 5, 2021
1 parent 143bd04 commit e1f2004
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- name: Release
uses: ncipollo/release-action@v1
with:
tag: "1.3.8"
tag: "1.3.9"
artifacts: "dist/React.exe"
token: ${{ secrets.GITHUB_TOKEN }}
52 changes: 27 additions & 25 deletions React.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

fg.purple3 = Style(RgbFg(86,88,221))

version = '1.3.8'
version = '1.3.9'

snipe_message_content = None
snipe_message_author = None
Expand Down Expand Up @@ -540,10 +540,9 @@ def GetUUID():
versionrequest = requests.get('https://react.flawcra.cc/api/info.php').json()['version']

if versionrequest != str(version):
print(f'{fg.blue}A new update is available, please run the updater or redownload the files if you\'re using Linux.{fg.rs}')
print(f'{fg.blue}A new update is available, please redownload the files from GitHub. https://github.com/FlawCra/ReactSelfbot/releases/tag/{versionrequest} {fg.rs}')
if sys.platform == "win32":
os.system("pause")
sys.exit()

if not os.path.exists('react.ico'):
iconreq = requests.get('https://react.flawcra.cc/download/favicon.ico', allow_redirects=True)
Expand Down Expand Up @@ -5437,29 +5436,32 @@ async def restartbot(ctx):

@React.command(name="updatebot")
async def updatebot(ctx):

await ctx.message.delete()
if os.name == 'nt':
try:
os.remove("AutoUpdater.exe")
except:
pass
open("./AutoUpdater.exe", "wb").write(requests.get("https://react.flawcra.cc/download/AutoUpdater.exe", allow_redirects=True).content)
os.system('"AutoUpdater.exe"')
else:
if os.uname().machine == 'x86_64':
try:
os.remove("reactautoupdater_x64_x86")
except:
pass
open("./reactautoupdater_x64_x86", "wb").write(requests.get("https://react.flawcra.cc/download/reactautoupdater_x64_x86", allow_redirects=True).content)
os.system("chmod +x reactautoupdater_x64_x86 && ./reactautoupdater_x64_x86")
else:
try:
os.remove("reactautoupdater_arm")
except:
pass
open("./reactautoupdater_arm", "wb").write(requests.get("https://react.flawcra.cc/download/reactautoupdater_arm", allow_redirects=True).content)
os.system("chmod +x reactautoupdater_arm && ./reactautoupdater_arm")
await ctx.send("AutoUpdater currently not available!")

# if os.name == 'nt':
# try:
# os.remove("AutoUpdater.exe")
# except:
# pass
# open("./AutoUpdater.exe", "wb").write(requests.get("https://react.flawcra.cc/download/AutoUpdater.exe", allow_redirects=True).content)
# os.system('"AutoUpdater.exe"')
# else:
# if os.uname().machine == 'x86_64':
# try:
# os.remove("reactautoupdater_x64_x86")
# except:
# pass
# open("./reactautoupdater_x64_x86", "wb").write(requests.get("https://react.flawcra.cc/download/reactautoupdater_x64_x86", allow_redirects=True).content)
# os.system("chmod +x reactautoupdater_x64_x86 && ./reactautoupdater_x64_x86")
# else:
# try:
# os.remove("reactautoupdater_arm")
# except:
# pass
# open("./reactautoupdater_arm", "wb").write(requests.get("https://react.flawcra.cc/download/reactautoupdater_arm", allow_redirects=True).content)
# os.system("chmod +x reactautoupdater_arm && ./reactautoupdater_arm")

already_redeemed = []

Expand Down

0 comments on commit e1f2004

Please sign in to comment.