allens преди 2 седмици
родител
ревизия
a5c018e804
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      install.sh

+ 6 - 0
install.sh

@@ -55,6 +55,12 @@ update_config() {  # Generate keys for SECRET_KEY and MGMT_AUTH
         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
+
+if [[ "$agreement" != "yes" ]]; then
+    echo -e "\n\nAgreement declined by user. OwnchatBot not installed.\n\n"
+    exit 0
+fi
 
 if check_venv; then
     create_venv