Skip to content

Conversation

ghost
Copy link

@ghost ghost commented May 7, 2023

The modules are installed automatically without having to do the manual command, same thing to start the bot.

To make everything even easier.

@AlexFlipnote
Copy link
Owner

The idea is great, however having 2 seperate .bat files kinda makes the project more overloaded with files. I'd say it would be easier to have one simple .bat file that is menu interactive. Here's an example:

@echo off

:MENU
cls
echo Welcome to funny menu
echo    1 Start the bot
echo    2 Install dependencies
echo    3 Exit menu
echo.

echo Type the number choice and press enter
SET /P M="> "
cls

IF %M%==1 GOTO START_BOT
IF %M%==2 GOTO UPDATE_PIP
IF %M%==3 GOTO EOF

:START_BOT
python index.py
pause
GOTO EOF

:UPDATE_PIP
pip install -r requirements.txt --upgrade
pause
GOTO MENU

:EOF
exit

@ghost
Copy link
Author

ghost commented May 7, 2023

Yes at the beginning I also had thought of something better inside a single file but I didn’t have time and i still don’t have time to recreate something like this for now (in fact I’m answering you from a phone)
so feel free to close the pul request and use your menu instead.

It was a pleasure to give you an idea!

@AlexFlipnote
Copy link
Owner

Welp, if you say so. I shall create it yes yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant