updated install script
This commit is contained in:
@@ -5,4 +5,14 @@ cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"
|
||||
cd ../..
|
||||
|
||||
#run
|
||||
npm install
|
||||
npm install
|
||||
|
||||
#discord token
|
||||
[ ! -f "token" ] && touch "token"
|
||||
|
||||
if [ ! -s "token" ]
|
||||
then
|
||||
printf "Enter your discord bot token: "
|
||||
read token
|
||||
printf $token > "token"
|
||||
fi
|
||||
@@ -4,4 +4,13 @@
|
||||
cd %~f0\..\..\..\
|
||||
|
||||
@REM run
|
||||
npm install
|
||||
npm install
|
||||
|
||||
@REM discord token
|
||||
if not exist "token" copy NUL "token"
|
||||
|
||||
for /f %%i in ("token") do set size=%%~zi
|
||||
if %size% equ 0 (
|
||||
set /p token="Enter your discord bot token: "
|
||||
echo | set /p=%id% > "token"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user