|
@@ -77,11 +77,18 @@ update_config() { # Generate key for SECRET_KEY
|
|
|
echo "Set OWNCAST_URL successfully."
|
|
echo "Set OWNCAST_URL successfully."
|
|
|
rm "$bak_file" # Remove the .bak file if the update was successful
|
|
rm "$bak_file" # Remove the .bak file if the update was successful
|
|
|
else
|
|
else
|
|
|
- echo "Failed to set ACCESS_ID."
|
|
|
|
|
|
|
+ echo "Failed to set OWNCAST_URL."
|
|
|
exit 1 # Exit the script with a non-zero status
|
|
exit 1 # Exit the script with a non-zero status
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
read -p "Enter the external URL your OwnchatBot will be using, with \"https://\": " OCB_URL
|
|
read -p "Enter the external URL your OwnchatBot will be using, with \"https://\": " OCB_URL
|
|
|
|
|
+ if sed -i.bak "s|OCB_URL = ''|OCB_URL = '$OCB_URL'|" "instance/config.py"; then
|
|
|
|
|
+ echo "Set OCB_URL successfully."
|
|
|
|
|
+ rm "$bak_file" # Remove the .bak file if the update was successful
|
|
|
|
|
+ else
|
|
|
|
|
+ echo "Failed to set OCB_URL."
|
|
|
|
|
+ exit 1 # Exit the script with a non-zero status
|
|
|
|
|
+ fi
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
read -p "This app includes an option to integrate Kofi donations and membership rewards into your stream. If you use this feature, you acknowledge that you alone are responsible for backing up and securing the OwnchatBot folder, so as not to lose any data related to rewards your viewiers earned by spending money on Kofi. The developer(s) of OwnchatBot assume no responsibility for any loss of such data. Do you agree to these terms? Type \"yes\" or \"no\": " agreement # Prompt the user to accept the agreement
|
|
read -p "This app includes an option to integrate Kofi donations and membership rewards into your stream. If you use this feature, you acknowledge that you alone are responsible for backing up and securing the OwnchatBot folder, so as not to lose any data related to rewards your viewiers earned by spending money on Kofi. The developer(s) of OwnchatBot assume no responsibility for any loss of such data. Do you agree to these terms? Type \"yes\" or \"no\": " agreement # Prompt the user to accept the agreement
|