aboutsummaryrefslogtreecommitdiff
path: root/run_bash.sh
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-02-25 23:15:04 -0500
committerGitHub <noreply@github.com>2025-02-25 23:15:04 -0500
commit44f7f14736aaf77858ee71c80abeb3c13343d3c2 (patch)
tree47dc895e50fa95b52a894bf0806e1a6c1edc8818 /run_bash.sh
parent9519602e73a53931be10438dcd990becea7989d9 (diff)
parent5777f96394444dab18a81d6f085ac81df3e62008 (diff)
downloadAleeBot-44f7f14736aaf77858ee71c80abeb3c13343d3c2.tar.gz
AleeBot-44f7f14736aaf77858ee71c80abeb3c13343d3c2.tar.bz2
AleeBot-44f7f14736aaf77858ee71c80abeb3c13343d3c2.zip
Merge pull request #36 from Alee14/beta
2.13 Release
Diffstat (limited to 'run_bash.sh')
-rw-r--r--run_bash.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/run_bash.sh b/run_bash.sh
new file mode 100644
index 0000000..cca71f5
--- /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 "Bad command"
+ ;;
+esac
+ done \ No newline at end of file