Remove deperecated VCA API vars

This commit is contained in:
Abhi
2025-02-28 20:30:03 +05:30
parent 06aa2768b4
commit 328eba25d6
7 changed files with 1 additions and 41 deletions

View File

@@ -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}

View File

@@ -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 |
|-------|--------|--------|

View File

@@ -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": [

View File

@@ -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}

View File

@@ -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 .

View File

@@ -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 "============================"
echo "============================"

View File

@@ -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)))