Skip to content

Commit d8c9d63

Browse files
committed
Fix of bugs (v1.0)
1 parent bca4f4e commit d8c9d63

File tree

8 files changed

+29
-22
lines changed

8 files changed

+29
-22
lines changed

.github/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ BlueFruit is developed exclusively for **educational purposes** and is meant for
4343
## 🔗 Credits
4444

4545
- [Discord Support](https://discord.gg/H3QwtfBtDx)
46-
- **Creator**: LOAD (load-dev)
46+
- **Creator**: LOAD (seb1noo)
4747
- **Current Version**: `v1.0`
4848

4949
---
5050

5151
### Note
5252
BlueFruit is an ongoing project. Keep an eye out for regular updates and new features!
5353

54-
---
54+
---

Start BlueFruit.lnk

-904 Bytes
Binary file not shown.

Start.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
cd src
3+
python BlueFruit.py

src/Utils/Utils.py

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,28 @@
1616
# ANY USE OF THIS SCRIPT, WITHOUT PERMISSION IS BANNABLE OFFENSE AND REASON FOR LICENSE PROBLEMS!
1717
# <=======================================================================>
1818

19+
import os
20+
import subprocess
21+
def ModuleInstall(module):
22+
"""Installs module
23+
24+
Args:
25+
module (str): Module name to install
26+
"""
27+
subprocess.check_call(['pip', 'install', module])
28+
29+
def ModuleUninstall(module):
30+
"""Uninstalls module
31+
32+
Args:
33+
module (str): Module name to uninstall
34+
"""
35+
subprocess.check_call(['pip', 'uninstall', module])
36+
1937
from .Config import *
2038
from .Colors import *
2139
try:
2240
import ctypes
23-
import subprocess
2441
import os
2542
import readchar
2643
import time
@@ -38,9 +55,12 @@
3855
import tempfile
3956
import string
4057
except Exception as e:
41-
import os
42-
print(f"[x] | Error Module (Restart Setup): {e}")
43-
os.system("pause")
58+
ModuleInstall("readchar")
59+
ModuleInstall("requests")
60+
if sys.platform.startswith("win"):
61+
os.system("cls")
62+
elif sys.platform.startswith("linux"):
63+
os.system("clear")
4464

4565
# [ ! ] PRIORITY FUNCTIONS
4666
# (these functions are used in utils)
@@ -73,22 +93,6 @@ def time_day_hour_prefix(): return f"{RED}[ {WHITE}{current_time_day_hour()} {RE
7393
bluesplittingline = f"———————————————————————————————————————————————————————————————————————————————————————————————————————————"
7494

7595
# FUNCTIONS
76-
77-
def ModuleInstall(module):
78-
"""Installs module
79-
80-
Args:
81-
module (str): Module name to install
82-
"""
83-
subprocess.check_call(['pip', 'install', module])
84-
85-
def ModuleUninstall(module):
86-
"""Uninstalls module
87-
88-
Args:
89-
module (str): Module name to uninstall
90-
"""
91-
subprocess.check_call(['pip', 'uninstall', module])
9296

9397
def MenuInput():
9498
"""Makes input for main menu of BlueFruit
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
40 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)