Skip to content

Commit 3e10cb6

Browse files
authored
Added starting and installation
1 parent 4fda89d commit 3e10cb6

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed

install.bat

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@echo off
2+
title Installing dependencies and running the app
3+
4+
color 0A
5+
6+
echo.
7+
echo ============================================
8+
echo Installing required dependencies...
9+
echo ============================================
10+
echo.
11+
12+
pip install nextcord
13+
pip install asyncio
14+
15+
if %errorlevel% neq 0 (
16+
echo.
17+
echo [ERROR] Something went wrong during installation. Please check the errors above.
18+
echo Press any key to exit...
19+
pause
20+
exit /b
21+
)
22+
23+
echo.
24+
echo ============================================
25+
echo Dependencies installed successfully!
26+
echo Running app.py...
27+
echo ============================================
28+
echo.
29+
30+
python app.py
31+
32+
echo.
33+
echo ============================================
34+
echo App has finished running.
35+
echo ============================================
36+
pause

start.bat

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
@echo off
2+
title Starting your Python Bot
3+
4+
color 0A
5+
6+
echo.
7+
echo ============================================
8+
echo Starting Hax Bot Panel
9+
echo ============================================
10+
echo.
11+
12+
python --version > nul 2>&1
13+
if %errorlevel% neq 0 (
14+
echo.
15+
echo [ERROR] Python is not installed. Please install Python and try again.
16+
echo Press any key to exit...
17+
pause
18+
exit /b
19+
)
20+
21+
pip --version > nul 2>&1
22+
if %errorlevel% neq 0 (
23+
echo.
24+
echo [ERROR] pip is not installed. Please install pip and try again.
25+
echo Press any key to exit...
26+
pause
27+
exit /b
28+
)
29+
30+
pip show nextcord > nul 2>&1
31+
if %errorlevel% neq 0 (
32+
echo.
33+
echo [INFO] nextcord is not installed. Installing it now...
34+
pip install nextcord
35+
if %errorlevel% neq 0 (
36+
echo.
37+
echo [ERROR] Failed to install nextcord. Please check your internet connection or permissions.
38+
echo Press any key to exit...
39+
pause
40+
exit /b
41+
)
42+
)
43+
44+
pip show asyncio > nul 2>&1
45+
if %errorlevel% neq 0 (
46+
echo.
47+
echo [INFO] asyncio is not installed. Installing it now...
48+
pip install asyncio
49+
if %errorlevel% neq 0 (
50+
echo.
51+
echo [ERROR] Failed to install asyncio. Please check your internet connection or permissions.
52+
echo Press any key to exit...
53+
pause
54+
exit /b
55+
)
56+
)
57+
58+
echo.
59+
echo ============================================
60+
echo All dependencies installed successfully!
61+
echo Running bot...
62+
echo ============================================
63+
echo.
64+
65+
python app.py
66+
67+
echo.
68+
echo ============================================
69+
echo Bot has finished running.
70+
echo ============================================

0 commit comments

Comments
 (0)