Spaces:
Paused
Paused
| # Ultroid - UserBot | |
| # Copyright (C) 2021-2025 TeamUltroid | |
| # | |
| # This file is a part of < https://github.com/TeamUltroid/Ultroid/ > | |
| # PLease read the GNU Affero General Public License in <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>. | |
| echo " | |
| ββ³ββββββββββββ | |
| βββ£ββββ³β³β³βββββ | |
| βββββ«ββ«ββ«βββββ | |
| βββ»ββ»ββ»ββββ»β»ββ | |
| Visit @TheUltroid for updates!! | |
| " | |
| # Clone addons if they don't exist | |
| if [ ! -d "addons" ] || [ ! -f "addons/__init__.py" ]; then | |
| echo "Setting up addons directory..." | |
| mkdir -p addons | |
| touch addons/__init__.py | |
| # Try to clone addons repository | |
| if command -v git &> /dev/null; then | |
| echo "Cloning addons repository..." | |
| git clone -q https://github.com/TeamUltroid/UltroidAddons.git addons_temp || true | |
| if [ -d "addons_temp" ]; then | |
| cp -r addons_temp/* addons/ 2>/dev/null || true | |
| rm -rf addons_temp | |
| fi | |
| fi | |
| fi | |
| # Set environment variables | |
| if [ -f .env ] ; then | |
| set -o allexport | |
| source .env | |
| set +o allexport | |
| fi | |
| # Start the application | |
| if [ $SESSION1 ] ; then | |
| python3 multi_client.py | |
| else | |
| python3 -m pyUltroid | |
| fi | |