From 328eba25d6d527c131b19bee5a4b803c5c81bf6e Mon Sep 17 00:00:00 2001 From: Abhi <85984486+AbhiTheModder@users.noreply.github.com> Date: Fri, 28 Feb 2025 20:30:03 +0530 Subject: [PATCH] Remove deperecated VCA API vars --- .env.dist | 3 --- README.md | 2 -- app.json | 5 ----- install.sh | 9 --------- install_yum.sh | 10 ---------- termux-install.sh | 12 +----------- utils/config.py | 1 - 7 files changed, 1 insertion(+), 41 deletions(-) diff --git a/.env.dist b/.env.dist index c8e60b8..4b265ee 100644 --- a/.env.dist +++ b/.env.dist @@ -33,6 +33,3 @@ GEMINI_KEY={@gemini_key} # cohere api key only for cohere plugin COHERE_KEY={@cohere_key} - -# VCA api key only for vdxl[sdxl] plugin -VCA_API_KEY={@vca_api_key} diff --git a/README.md b/README.md index b9a68b6..3bdb0dc 100644 --- a/README.md +++ b/README.md @@ -69,8 +69,6 @@ - `COHERE_KEY` - ONLY, If you want to use cohere ai plugin You can get it from [here](https://dashboard.cohere.com/api-keys) -- `VCA_API_KEY` - ONLY, If you want to use ai tools like sdxl,upscale plugin You can get it from [here](https://github.com/VisionCraft-org/VisionCraft?tab=readme-ov-file#obtaining-an-api-key) - ## ☁️ Cloud Host | Koyeb | Heroku | Render | |-------|--------|--------| diff --git a/app.json b/app.json index 3d0522b..56cd2ea 100644 --- a/app.json +++ b/app.json @@ -69,11 +69,6 @@ "description": "ONLY, If you want to use cohere ai plugin You can get it from https://dashboard.cohere.com/api-keys", "value": "123456779:ABCDE", "required": true - }, - "VCA_API_KEY": { - "description": "ONLY, If you want to use ai tools like sdxl,upscale plugin You can get it from https://t.me/VisionCraft_bot", - "value": "123456789:ABCDE", - "required": true } }, "buildpacks": [ diff --git a/install.sh b/install.sh index fcc7442..deed859 100755 --- a/install.sh +++ b/install.sh @@ -182,14 +182,6 @@ if [[ $cohere_key = "" ]]; then printf "NOTE: API Not set; you'll not be able to use Coral AI modules\n" fi -printf "Enter VCA_API_KEY for aiutils\n" -printf "Learn How to Get One --> https://github.com/VisionCraft-org/VisionCraft?tab=readme-ov-file#obtaining-an-api-key\n" -read -r -p "VCA_API_KEY > " vca_api_key - -if [[ $vca_api_key = "" ]]; then - printf "NOTE: API Not set; you'll not be able to use aiutils module/plugins\n" -fi - while true; do # Prompt for database type and database URL if MongoDB is selected printf "${YELLOW}Choose database type:${NC}\n" # skipcq @@ -256,7 +248,6 @@ APIFLASH_KEY=${apiflash_key} RMBG_KEY=${rmbg_key} VT_KEY=${vt_key} GEMINI_KEY=${gemini_key} -VCA_API_KEY=${vca_api_key} COHERE_KEY=${cohere_key} PM_LIMIT=${pm_limit} SECOND_SESSION=${second_session} diff --git a/install_yum.sh b/install_yum.sh index bacef1c..dc1cab6 100644 --- a/install_yum.sh +++ b/install_yum.sh @@ -91,15 +91,6 @@ if [[ $cohere_key = "" ]]; then echo "NOTE: API Not set you'll not be able to use Coral AI modules" fi -echo -echo "Enter VCA_API_KEY for aiutils" -echo "Learn How to Get One --> https://github.com/VisionCraft-org/VisionCraft?tab=readme-ov-file#obtaining-an-api-key" -read -r -p "VCA_API_KEY > " vca_api_key - -if [[ $vca_api_key = "" ]]; then - echo "NOTE: API Not set you'll not be able to use aiutils module/pligins" -fi - echo echo "Choose database type:" echo "[1] MongoDB db_url" @@ -152,7 +143,6 @@ RMBG_KEY=${rmbg_key} VT_KEY=${vt_key} GEMINI_KEY=${gemini_key} COHERE_KEY=${cohere_key} -VCA_API_KEY=${vca_api_key} EOL chown -R $SUDO_USER:$SUDO_USER . diff --git a/termux-install.sh b/termux-install.sh index 389fdeb..4a045ef 100644 --- a/termux-install.sh +++ b/termux-install.sh @@ -96,15 +96,6 @@ if [[ $vt_key = "" ]]; then echo "NOTE: API Not set you'll not be able to use VirusTotal module" fi -echo -echo "Enter VCA_API_KEY for aiutils" -echo "Learn How to Get One --> https://github.com/VisionCraft-org/VisionCraft?tab=readme-ov-file#obtaining-an-api-key" -read -r -p "VCA_API_KEY > " vca_api_key - -if [[ $vca_api_key = "" ]]; then - echo "NOTE: API Not set you'll not be able to use aiutils module/pligins" -fi - echo "Choose database type:" echo "[1] MongoDB (your url)" echo "[2] Sqlite" @@ -140,7 +131,6 @@ RMBG_KEY=${rmbg_key} VT_KEY=${vt_key} GEMINI_KEY=${gemini_key} COHERE_KEY=${cohere_key} -VCA_API_KEY=${vca_api_key} PM_LIMIT=${pm_limit} EOL @@ -150,4 +140,4 @@ echo echo "============================" echo "Great! Moon-Userbot installed successfully!" echo "Start with: \"cd Moon-Userbot && python3 main.py\"" -echo "============================" \ No newline at end of file +echo "============================" diff --git a/utils/config.py b/utils/config.py index d14ebe2..4204e68 100644 --- a/utils/config.py +++ b/utils/config.py @@ -22,7 +22,6 @@ apiflash_key = os.getenv("APIFLASH_KEY", env.str("APIFLASH_KEY")) rmbg_key = os.getenv("RMBG_KEY", env.str("RMBG_KEY", "")) vt_key = os.getenv("VT_KEY", env.str("VT_KEY", "")) gemini_key = os.getenv("GEMINI_KEY", env.str("GEMINI_KEY", "")) -vca_api_key = os.getenv("VCA_API_KEY", env.str("VCA_API_KEY", "")) cohere_key = os.getenv("COHERE_KEY", env.str("COHERE_KEY", "")) pm_limit = int(os.getenv("PM_LIMIT", env.int("PM_LIMIT", 4)))