Created
February 1, 2017 18:20
-
-
Save Jan200101/5c07be859f2038eac04386418fee293f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Echo off | |
title Checking if you are admin... | |
timeout 2 /nobreak> NUL | |
net session >nul 2>&1 | |
if %errorLevel% == 0 ( | |
goto admin | |
) else ( | |
goto user | |
) | |
echo ERROR | |
pause >nul | |
goto end | |
:user | |
goto admin | |
exit | |
:admin | |
Title Easy Red Cloning | |
echo( I am now going to clone red. | |
echo( | |
echo( Press any key to accept. | |
pause > NUL | |
cls | |
goto trygit | |
:trygit | |
git.exe --version > NUL 2>&1 | |
IF %ERRORLEVEL% NEQ 0 GOTO nogit | |
cls | |
goto git | |
:nogit | |
cls | |
echo( git is not installed. | |
echo( Please tell Sentry | |
pause > NUL | |
exit | |
:git | |
echo Name the folder Red is going to be stored in | |
set /P folder=">" | |
goto clone | |
:clone | |
cls | |
cd %cd% | |
git clone https://github.com/Twentysix26/Red-DiscordBot %folder% | |
IF %ERRORLEVEL% NEQ 0 echo %folder% already exists & GOTO git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment