#!/bin/bash

export Gris="\033[1;30m"
export Negro="\033[0;30m"
export Rojo="\033[0;31m"
export Verde="\033[0;32m"
export Amarillo="\033[0;33m"
export Azul="\033[0;34m"
export Magenta="\033[0;35m"
export Cian="\033[0;36m"
export Blanco="\033[0;37m"

export Negro_Brillante="\033[1;30m"
export Rojo_Brillante="\033[1;31m"
export Verde_Brillante="\033[1;32m"
export Amarillo_Brillante="\033[1;33m"
export Azul_Brillante="\033[1;34m"
export Magenta_Brillante="\033[1;35m"
export Cian_Brillante="\033[1;36m"
export Blanco_Brillante="\033[1;37m"

export Fondo_Negro="\033[40m"
export Fondo_Rojo="\033[41m"
export Fondo_Verde="\033[42m"
export Fondo_Amarillo="\033[43m"
export Fondo_Azul="\033[44m"
export Fondo_Magenta="\033[45m"
export Fondo_Cian="\033[46m"
export Fondo_Blanco="\033[47m"

export Fondo_Negro_Brillante="\033[0;100m"
export Fondo_Rojo_Brillante="\033[0;101m"
export Fondo_Verde_Brillante="\033[0;102m"
export Fondo_Amarillo_Brillante="\033[0;103m"
export Fondo_Azul_Brillante="\033[0;104m"
export Fondo_Magenta_Brillante="\033[0;105m"
export Fondo_Cian_Brillante="\033[0;106m"
export Fondo_Blanco_Brillante="\033[0;107m"

export Reset="\033[0m"
export Negrita="\033[1m"
export Atenuado="\033[2m"
export Italico="\033[3m"
export Subrayado="\033[4m"
export Parpadeo="\033[5m"
export Invertido="\033[7m"
export Oculto="\033[8m"
export Tachado="\033[9m"

clear

banner="""
███████╗████████╗███████╗██╗     ██╗      █████╗ ██████╗ 
██╔════╝╚══██╔══╝██╔════╝██║     ██║     ██╔══██╗██╔══██╗
███████╗   ██║   █████╗  ██║     ██║     ███████║██████╔╝
╚════██║   ██║   ██╔══╝  ██║     ██║     ██╔══██║██╔══██╗
███████║   ██║   ███████╗███████╗███████╗██║  ██║██║  ██║
╚══════╝   ╚═╝   ╚══════╝╚══════╝╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝

                                   @Desinstalador/Uninstaller"""

printf "${Azul_Brillante} ${banner} ${Reset}"
printf "\n"
printf "\n${Magenta_Brillante}⭐ Created by: Keiji821 ${Reset}"
printf "\n${Cian_Brillante}🔵 My Discord contact: ${Verde_Brillante}keiji100 ${Reset}"
printf "\n${Magenta_Brillante}📦 Repository ${Rojo_Brillante} >>> ${Cian_Brillante}${Subrayado}https://github.com/Keiji821/Stellar${Reset}\n"
printf "\n"
printf "\n${Rojo_Brillante}[!]${Blanco_Brillante} Note: The program is currently in Spanish,\nwith full English support coming soon. ${Reset}"
printf "\n"

printf "\n${Amarillo_Brillante}"
read -p "• Elija su idioma/Choose your language (Español/English): " language


# Desinstalador/Uninstaller

if [[ "$language" == "Español" || "$language" == "Spanish" || "$language" == "spanish" || "$language" == "español" || "$language" == "es" ]]; then
    echo -e "${Rojo_Brillante}¿Desea eliminar Stellar completamente?${Reset}"
    read -p "\nEsta acción no se puede deshacer [S/N]: " respuesta

    if [[ "$respuesta" =~ ^[SsYy]$|^[Ss]í$|^[Ss]i$ ]]; then
        echo -e "\n${Rojo_Brillante}➤ Eliminando archivos de Stellar...${Reset}"
        command rm -rf ~/Stellar
        command rm -rf ~/.bashrc
        command rm -rf ~/.bash_profile
        command rm -rf ~/tor.txt
        echo -e "\n${Verde_Brillante}✔ Stellar se ha eliminado completamente${Reset}"
        echo -e "\n${Magenta_Brillante}Gracias por haber utilizado Stellar!"
        echo -e "\n${Cian_Brillante}Atte: Keiji821${Reset}"
        echo -e "\n${Azul_Brillante}¡Hasta pronto! :)${Reset}"
    else
        echo -e "${Amarillo_Brillante}➤ Operación cancelada${Reset}"
    fi
sleep 3
login
fi


if [[ "$language" == "English" || "$language" == "english" || "$language" == "en" ]]; then
    echo -e "${Rojo_Brillante}Do you want to remove Stellar completely?${Reset}"
    read -p "\nThis action cannot be undone [S/N]: " respuesta

    if [[ "$respuesta" =~ ^[SsYy]$|^[Ss]í$|^[Ss]i$ ]]; then
        echo -e "\n${Rojo_Brillante}➤ Deleting files from Stellar...${Reset}"
        command rm -rf ~/Stellar
        command rm -rf ~/.bashrc
        command rm -rf ~/.bash_profile
        command rm -rf ~/tor.txt
        echo -e "\n${Verde_Brillante}✔ Stellar has been completely removed${Reset}"
        echo -e "\n${Magenta_Brillante}Thank you for using Stellar!"
        echo -e "\n${Cian_Brillante}Atte: Keiji821${Reset}"
        echo -e "\n${Azul_Brillante}¡See you soon! :)${Reset}"
    else
        echo -e "${Amarillo_Brillante}➤ Operation cancelled${Reset}"
    fi
sleep 3
login
fi