From 5b5679e92f2541a69210c20c4450e07d7fbb1337 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 21 May 2020 18:00:16 -0400 Subject: Revamped the bash file --- run_bash.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 run_bash.sh (limited to 'run_bash.sh') diff --git a/run_bash.sh b/run_bash.sh new file mode 100644 index 0000000..a7ca506 --- /dev/null +++ b/run_bash.sh @@ -0,0 +1,43 @@ +#!/bin/bash +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 tokens.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 (Alee Productions Developers will work fine).' +echo '--------------------------------------------------------------------------------' +echo "To start the bot when you are ready, type in 'Yes/yes/y' or type in 'debug' to enter debug mode or type in 'beta' to enter beta mode." +while true +do +read -r -p "> " input + +case $input in + [yY] | [yY][eE][sS]) + for (( ; ; )) + do + git pull + node bot_discord.js + sleep 2 + done + ;; + [dD][eE][bB][uU][gG]) + for (( ; ; )) + do + node bot_discord.js --debug + sleep 2 + done + ;; + [bB][eE][tT][aA]) + for (( ; ; )) + do + node bot_discord.js --beta + sleep 2 + done + ;; + [nN] | [nN][oO]) + exit 1 + ;; + *) +echo "Invalid input..." + ;; +esac + done \ No newline at end of file -- cgit v1.2.3 From bbb982243b6564e526fb581f55946704cdf256a3 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 21 May 2020 18:03:52 -0400 Subject: Changed invalid input to bad command --- run_bash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'run_bash.sh') diff --git a/run_bash.sh b/run_bash.sh index a7ca506..cca71f5 100644 --- a/run_bash.sh +++ b/run_bash.sh @@ -37,7 +37,7 @@ case $input in exit 1 ;; *) -echo "Invalid input..." +echo "Bad command" ;; esac done \ No newline at end of file -- cgit v1.2.3