Compare commits
2 Commits
ae7093ae1d
...
7ae2cb8db0
| Author | SHA1 | Date | |
|---|---|---|---|
| 7ae2cb8db0 | |||
| d7adc4afde |
@@ -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
6776
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -5,4 +5,14 @@ cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"
|
|||||||
cd ../..
|
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
|
||||||
@@ -4,4 +4,13 @@
|
|||||||
cd %~f0\..\..\..\
|
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"
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user