blob: a7ca5064fdb33a6dd00f798672a339a1ec822a07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
|