From 44079bdc46ae1eb5873100fd4971dc8446d640c1 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Fri, 11 Mar 2022 23:51:38 -0700 Subject: fix installer output --- install.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index ea3d438..db2dbeb 100755 --- a/install.sh +++ b/install.sh @@ -56,11 +56,12 @@ echo "Done installing!" 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]" echo $USAGE +echo while read -rs -N 1 key; do case $key in - y) 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 ;; + y) echo; break ;; + 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 printf "%b" $USAGE done @@ -73,6 +74,7 @@ read INSTALL_EDITOR if [[ $INSTALL_EDITOR ]]; 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 else INSTALL_EDITOR="nano" fi @@ -81,15 +83,17 @@ echo "The first file we will edit is the settings file. You will need to enter t read echo "executing: $INSTALL_EDITOR follow-src/settings.json" +echo $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 "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." read echo "executing: $INSTALL_EDITOR twitch-bot/settings.json" +echo $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." @@ -97,6 +101,7 @@ echo "Press ENTER to open the file." read echo "executing: $INSTALL_EDITOR twitch-bot/commands.json" +echo $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." @@ -106,6 +111,7 @@ echo "Press ENTER to open the file." read echo "executing: $INSTALL_EDITOR twitch-bot/reacts.json" +echo $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." -- cgit v1.2.3