summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-04-16 10:44:13 -0400
committerAlee <alee14498@gmail.com>2018-04-16 10:44:13 -0400
commit8ab00f876fe29574e4688312d4ed4f8e408ac8ef (patch)
treed44070a8cb6433273fb461168f54cf02b49cfccb
parent33cd7187620ec6f79af1d426c9637c104bd73dc5 (diff)
downloadAleeBot-8ab00f876fe29574e4688312d4ed4f8e408ac8ef.tar.gz
AleeBot-8ab00f876fe29574e4688312d4ed4f8e408ac8ef.tar.bz2
AleeBot-8ab00f876fe29574e4688312d4ed4f8e408ac8ef.zip
Added more options in console
-rw-r--r--package-lock.json5
-rw-r--r--package.json1
-rw-r--r--run_win.bat28
3 files changed, 25 insertions, 9 deletions
diff --git a/package-lock.json b/package-lock.json
index 67b19b2..64b306c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,6 +9,11 @@
"resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz",
"integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg=="
},
+ "blessed": {
+ "version": "0.1.81",
+ "resolved": "https://registry.npmjs.org/blessed/-/blessed-0.1.81.tgz",
+ "integrity": "sha1-+WLWh+wsNpVwrnGvhDJW5tDKESk="
+ },
"discord-eco": {
"version": "0.0.10",
"resolved": "https://registry.npmjs.org/discord-eco/-/discord-eco-0.0.10.tgz",
diff --git a/package.json b/package.json
index 68b7df5..ee6affd 100644
--- a/package.json
+++ b/package.json
@@ -17,6 +17,7 @@
},
"homepage": "https://github.com/AleeCorp/AleeBot#readme",
"dependencies": {
+ "blessed": "^0.1.81",
"discord-eco": "0.0.10",
"discord.js": "^11.3.1",
"fs": "0.0.1-security",
diff --git a/run_win.bat b/run_win.bat
index 7fddb3d..9a9f2ab 100644
--- a/run_win.bat
+++ b/run_win.bat
@@ -1,28 +1,38 @@
@echo off
title AleeBot Console
-
+:main
echo Welcome to the AleeBot Console.
echo If you want to self-host this bot, please continue by executing the following steps:
echo 1. Create a absettings.json file and include the token of your bot user so that the bot does not error out when connecting to Discord Servers.
echo 2. You will need to edit this file that you ran, and remove the 'git pull" line. This causes errors as it will try to pull from the AleeBot git.
echo 3. Finally, you must credit the developers (AleeCorp Developers will work fine).
echo --------------------------------------------------------------------------------
-echo To start the bot when you are ready, type in 'Yes' or type in 'debug' to enter into debug mode.
-set /p start=
-
+echo To start the bot when you are ready, type in 'Yes/yes/y' or type in 'debug' to enter debug mode.
+set /p start=>
if %start% == Yes goto a
if %start% == yes goto a
if %start% == y goto a
if %start% == debug goto ad
-
-echo Exiting...
-pause>nul
-exit
+if %start% == no goto cexit
+if %start% == No goto cexit
+if %start% == exit goto cexit
+if %start% == other goto error
+:error
+echo Bad command or file name or type command
+echo.
+goto main
:a
git pull
node bot_discord.js
goto a
:ad
+echo [i] Entering debug mode
+goto add
+:add
git pull
node bot_discord.js --debug
-goto ad \ No newline at end of file
+goto ad
+:cexit
+echo Exiting...
+pause>nul
+exit \ No newline at end of file