fix installer output
This commit is contained in:
parent
ae92151b17
commit
44079bdc46
1 changed files with 9 additions and 3 deletions
12
install.sh
12
install.sh
|
@ -56,11 +56,12 @@ echo "Done installing!"
|
||||||
echo "Now you can configure your scripts by editing the corresponding settings files."
|
echo "Now you can configure your scripts by editing the corresponding settings files."
|
||||||
USAGE="Would you like to go through the automated steps? [y/n]"
|
USAGE="Would you like to go through the automated steps? [y/n]"
|
||||||
echo $USAGE
|
echo $USAGE
|
||||||
|
echo
|
||||||
|
|
||||||
while read -rs -N 1 key; do
|
while read -rs -N 1 key; do
|
||||||
case $key in
|
case $key in
|
||||||
y) break ;;
|
y) echo; break ;;
|
||||||
n) echo "No worries! Just make sure you edit all the JSON files in both directories to your liking."; echo "Happy Streaming!"; exit 0 ;;
|
n) echo "No worries! Just make sure you edit all the JSON files in both directories to your liking and to link your accounts."; echo "Happy Streaming!"; exit 0 ;;
|
||||||
esac
|
esac
|
||||||
printf "%b" $USAGE
|
printf "%b" $USAGE
|
||||||
done
|
done
|
||||||
|
@ -73,6 +74,7 @@ read INSTALL_EDITOR
|
||||||
if [[ $INSTALL_EDITOR ]]; then
|
if [[ $INSTALL_EDITOR ]]; then
|
||||||
echo "Advanced are we? We will use $INSTALL_EDITOR to edit the files then."
|
echo "Advanced are we? We will use $INSTALL_EDITOR to edit the files then."
|
||||||
echo "If you entered it wrong, type ^C to exit and rerun the install.sh file."
|
echo "If you entered it wrong, type ^C to exit and rerun the install.sh file."
|
||||||
|
echo
|
||||||
else
|
else
|
||||||
INSTALL_EDITOR="nano"
|
INSTALL_EDITOR="nano"
|
||||||
fi
|
fi
|
||||||
|
@ -81,15 +83,17 @@ echo "The first file we will edit is the settings file. You will need to enter t
|
||||||
read
|
read
|
||||||
|
|
||||||
echo "executing: $INSTALL_EDITOR follow-src/settings.json"
|
echo "executing: $INSTALL_EDITOR follow-src/settings.json"
|
||||||
|
echo
|
||||||
$INSTALL_EDITOR follow-src/settings.json
|
$INSTALL_EDITOR follow-src/settings.json
|
||||||
|
|
||||||
echo "Cool! That's everything you need to get the Python bot working. Feel free to edit that file later."
|
echo "Cool! That's everything you need to get the Python script working. Feel free to edit that file later."
|
||||||
echo "Now let's move on to the Twitch bot. There are more files we must edit in here."
|
echo "Now let's move on to the Twitch bot. There are more files we must edit in here."
|
||||||
echo "The first file to edit is the settings.json file for the Twitch bot. You will need to add the name of the bot's Twitch username, it's oauth code, YOUR OWN username, and the names of the channels you want the bot to be present in."
|
echo "The first file to edit is the settings.json file for the Twitch bot. You will need to add the name of the bot's Twitch username, it's oauth code, YOUR OWN username, and the names of the channels you want the bot to be present in."
|
||||||
echo "You can optionally change the command character. Press ENTER to open the file."
|
echo "You can optionally change the command character. Press ENTER to open the file."
|
||||||
read
|
read
|
||||||
|
|
||||||
echo "executing: $INSTALL_EDITOR twitch-bot/settings.json"
|
echo "executing: $INSTALL_EDITOR twitch-bot/settings.json"
|
||||||
|
echo
|
||||||
$INSTALL_EDITOR twitch-bot/settings.json
|
$INSTALL_EDITOR twitch-bot/settings.json
|
||||||
|
|
||||||
echo "Next, let's add the commands you want your bot to do. Enter the name of the command in the \"command\" field, and the reply for that command in the \"reply\" field. You can add as many commands as you want."
|
echo "Next, let's add the commands you want your bot to do. Enter the name of the command in the \"command\" field, and the reply for that command in the \"reply\" field. You can add as many commands as you want."
|
||||||
|
@ -97,6 +101,7 @@ echo "Press ENTER to open the file."
|
||||||
read
|
read
|
||||||
|
|
||||||
echo "executing: $INSTALL_EDITOR twitch-bot/commands.json"
|
echo "executing: $INSTALL_EDITOR twitch-bot/commands.json"
|
||||||
|
echo
|
||||||
$INSTALL_EDITOR twitch-bot/commands.json
|
$INSTALL_EDITOR twitch-bot/commands.json
|
||||||
|
|
||||||
echo "Finally, let's set up reactions for your bot. Reactions are messages that your bot sends when someone says a specific phrase, without any need for a command."
|
echo "Finally, let's set up reactions for your bot. Reactions are messages that your bot sends when someone says a specific phrase, without any need for a command."
|
||||||
|
@ -106,6 +111,7 @@ echo "Press ENTER to open the file."
|
||||||
read
|
read
|
||||||
|
|
||||||
echo "executing: $INSTALL_EDITOR twitch-bot/reacts.json"
|
echo "executing: $INSTALL_EDITOR twitch-bot/reacts.json"
|
||||||
|
echo
|
||||||
$INSTALL_EDITOR twitch-bot/reacts.json
|
$INSTALL_EDITOR twitch-bot/reacts.json
|
||||||
|
|
||||||
echo "That's it! Everything should be set up and ready to go. You can optionally add mod commands for the Twitch bot by editing the twitch-bot/mod_commands.json file."
|
echo "That's it! Everything should be set up and ready to go. You can optionally add mod commands for the Twitch bot by editing the twitch-bot/mod_commands.json file."
|
||||||
|
|
Reference in a new issue