updated install script
This commit is contained in:
@@ -6,14 +6,19 @@
|
||||
|
||||
Download and install [Node.js](https://nodejs.org/en/)
|
||||
|
||||
Your Discord bot's token can be found in your [Discord dev portal](https://discord.com/developers/applications)
|
||||
|
||||
1. Create or choose your application
|
||||
2. Go to the `Bot` section
|
||||
- click `Add Bot` if you haven't already
|
||||
3. Copy your token
|
||||
|
||||
## Automatic Installation/Updating
|
||||
|
||||
1. Download and extract this repository
|
||||
2. Open the `scripts` folder
|
||||
3. Open the folder that corresponds with your operating system
|
||||
4. Run the `install` file
|
||||
5. Create a file called `token` in the same directory as your `package.json` file and enter your bot client's token
|
||||
- the `install` script will be updatedd soon to include this step
|
||||
|
||||
## Manual Installation/Updating
|
||||
|
||||
|
||||
@@ -6,3 +6,13 @@ cd ../..
|
||||
|
||||
#run
|
||||
npm install
|
||||
|
||||
#discord token
|
||||
[ ! -f "token" ] && touch "token"
|
||||
|
||||
if [ ! -s "token" ]
|
||||
then
|
||||
printf "Enter your discord bot token: "
|
||||
read token
|
||||
printf $token > "token"
|
||||
fi
|
||||
@@ -5,3 +5,12 @@ cd %~f0\..\..\..\
|
||||
|
||||
@REM run
|
||||
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