Remove deperecated VCA API vars
This commit is contained in:
@@ -33,6 +33,3 @@ GEMINI_KEY={@gemini_key}
|
|||||||
|
|
||||||
# cohere api key only for cohere plugin
|
# cohere api key only for cohere plugin
|
||||||
COHERE_KEY={@cohere_key}
|
COHERE_KEY={@cohere_key}
|
||||||
|
|
||||||
# VCA api key only for vdxl[sdxl] plugin
|
|
||||||
VCA_API_KEY={@vca_api_key}
|
|
||||||
|
|||||||
@@ -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)
|
- `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
|
## ☁️ Cloud Host
|
||||||
| Koyeb | Heroku | Render |
|
| Koyeb | Heroku | Render |
|
||||||
|-------|--------|--------|
|
|-------|--------|--------|
|
||||||
|
|||||||
5
app.json
5
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",
|
"description": "ONLY, If you want to use cohere ai plugin You can get it from https://dashboard.cohere.com/api-keys",
|
||||||
"value": "123456779:ABCDE",
|
"value": "123456779:ABCDE",
|
||||||
"required": true
|
"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": [
|
"buildpacks": [
|
||||||
|
|||||||
@@ -182,14 +182,6 @@ if [[ $cohere_key = "" ]]; then
|
|||||||
printf "NOTE: API Not set; you'll not be able to use Coral AI modules\n"
|
printf "NOTE: API Not set; you'll not be able to use Coral AI modules\n"
|
||||||
fi
|
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
|
while true; do
|
||||||
# Prompt for database type and database URL if MongoDB is selected
|
# Prompt for database type and database URL if MongoDB is selected
|
||||||
printf "${YELLOW}Choose database type:${NC}\n" # skipcq
|
printf "${YELLOW}Choose database type:${NC}\n" # skipcq
|
||||||
@@ -256,7 +248,6 @@ APIFLASH_KEY=${apiflash_key}
|
|||||||
RMBG_KEY=${rmbg_key}
|
RMBG_KEY=${rmbg_key}
|
||||||
VT_KEY=${vt_key}
|
VT_KEY=${vt_key}
|
||||||
GEMINI_KEY=${gemini_key}
|
GEMINI_KEY=${gemini_key}
|
||||||
VCA_API_KEY=${vca_api_key}
|
|
||||||
COHERE_KEY=${cohere_key}
|
COHERE_KEY=${cohere_key}
|
||||||
PM_LIMIT=${pm_limit}
|
PM_LIMIT=${pm_limit}
|
||||||
SECOND_SESSION=${second_session}
|
SECOND_SESSION=${second_session}
|
||||||
|
|||||||
@@ -91,15 +91,6 @@ if [[ $cohere_key = "" ]]; then
|
|||||||
echo "NOTE: API Not set you'll not be able to use Coral AI modules"
|
echo "NOTE: API Not set you'll not be able to use Coral AI modules"
|
||||||
fi
|
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
|
||||||
echo "Choose database type:"
|
echo "Choose database type:"
|
||||||
echo "[1] MongoDB db_url"
|
echo "[1] MongoDB db_url"
|
||||||
@@ -152,7 +143,6 @@ RMBG_KEY=${rmbg_key}
|
|||||||
VT_KEY=${vt_key}
|
VT_KEY=${vt_key}
|
||||||
GEMINI_KEY=${gemini_key}
|
GEMINI_KEY=${gemini_key}
|
||||||
COHERE_KEY=${cohere_key}
|
COHERE_KEY=${cohere_key}
|
||||||
VCA_API_KEY=${vca_api_key}
|
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
chown -R $SUDO_USER:$SUDO_USER .
|
chown -R $SUDO_USER:$SUDO_USER .
|
||||||
|
|||||||
@@ -96,15 +96,6 @@ if [[ $vt_key = "" ]]; then
|
|||||||
echo "NOTE: API Not set you'll not be able to use VirusTotal module"
|
echo "NOTE: API Not set you'll not be able to use VirusTotal module"
|
||||||
fi
|
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 "Choose database type:"
|
||||||
echo "[1] MongoDB (your url)"
|
echo "[1] MongoDB (your url)"
|
||||||
echo "[2] Sqlite"
|
echo "[2] Sqlite"
|
||||||
@@ -140,7 +131,6 @@ RMBG_KEY=${rmbg_key}
|
|||||||
VT_KEY=${vt_key}
|
VT_KEY=${vt_key}
|
||||||
GEMINI_KEY=${gemini_key}
|
GEMINI_KEY=${gemini_key}
|
||||||
COHERE_KEY=${cohere_key}
|
COHERE_KEY=${cohere_key}
|
||||||
VCA_API_KEY=${vca_api_key}
|
|
||||||
PM_LIMIT=${pm_limit}
|
PM_LIMIT=${pm_limit}
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
@@ -150,4 +140,4 @@ echo
|
|||||||
echo "============================"
|
echo "============================"
|
||||||
echo "Great! Moon-Userbot installed successfully!"
|
echo "Great! Moon-Userbot installed successfully!"
|
||||||
echo "Start with: \"cd Moon-Userbot && python3 main.py\""
|
echo "Start with: \"cd Moon-Userbot && python3 main.py\""
|
||||||
echo "============================"
|
echo "============================"
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ apiflash_key = os.getenv("APIFLASH_KEY", env.str("APIFLASH_KEY"))
|
|||||||
rmbg_key = os.getenv("RMBG_KEY", env.str("RMBG_KEY", ""))
|
rmbg_key = os.getenv("RMBG_KEY", env.str("RMBG_KEY", ""))
|
||||||
vt_key = os.getenv("VT_KEY", env.str("VT_KEY", ""))
|
vt_key = os.getenv("VT_KEY", env.str("VT_KEY", ""))
|
||||||
gemini_key = os.getenv("GEMINI_KEY", env.str("GEMINI_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", ""))
|
cohere_key = os.getenv("COHERE_KEY", env.str("COHERE_KEY", ""))
|
||||||
|
|
||||||
pm_limit = int(os.getenv("PM_LIMIT", env.int("PM_LIMIT", 4)))
|
pm_limit = int(os.getenv("PM_LIMIT", env.int("PM_LIMIT", 4)))
|
||||||
|
|||||||
Reference in New Issue
Block a user