Compare commits

...

2 Commits

Author SHA1 Message Date
7ae2cb8db0 updated install script 2022-01-31 13:56:39 -06:00
d7adc4afde updated version number 2022-01-31 13:45:40 -06:00
4 changed files with 3416 additions and 3392 deletions

View File

@@ -6,14 +6,19 @@
Download and install [Node.js](https://nodejs.org/en/) 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 ## Automatic Installation/Updating
1. Download and extract this repository 1. Download and extract this repository
2. Open the `scripts` folder 2. Open the `scripts` folder
3. Open the folder that corresponds with your operating system 3. Open the folder that corresponds with your operating system
4. Run the `install` file 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 ## Manual Installation/Updating

6776
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,3 +6,13 @@ cd ../..
#run #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

View File

@@ -5,3 +5,12 @@ cd %~f0\..\..\..\
@REM run @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"
)