فهرست منبع

Added agreement blurb

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