浏览代码

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
         exit 1  # Exit the script with a non-zero status
     fi
     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
 if check_venv; then
     create_venv
     create_venv