This commit is contained in:
drowkid01 2025-05-28 13:17:17 -06:00
parent 559ea2c43c
commit 1f383326c8

View File

@ -1,5 +1,5 @@
#!/bin/bash
source /usr/local/lib/drowkid/msg
function downfilez(){
mkdir -p /etc/scripts
link='https://darix.ooguy.com/drowkid01/dpbt/raw/branch/main/scripts'
@ -271,4 +271,41 @@ msg -b
echo -e "\e[1;32m[+] BOTGEN DESCARGADO CORRECTAMENTE [+]"
}
power(){
pb=$(ps x|grep -v grep|grep -w 'BotGen.sh')
ph=$(ps x|grep -v grep|grep -w 'http-server.sh')
[[ -z $pb ]] && {
pb="\e[1;31m[x] BOTGEN INACTIVO [x]"&&bp="\e[1;31m[OFF]"
} || {
pb="\e[1;32m[+] BOTGEN ACTIVO [+]"&&bp="\e[1;32m[ON] "
}
[[ -z $ph ]] && {
ph="\e[1;31m[x] GENERADOR INACTIVO [x]"&&hp="\e[1;31m[OFF]"
} || {
ph="\e[1;32m[+] GENERADOR ACTIVO [+]"&&hp="\e[1;32m[ON] "
}
[[ -z $1 ]] || {
case $1 in
--activar)screen -dmS "$2" "$3" >/dev/null 2>&1;;
--desactivar)screen -dmS "$2" "$3" >/dev/null 2>&1;;
esac
}
}
[[ ! -e /etc/CAT-BOT/Admin-ID ]] && idd="\e[1;31m[!] CONFIGURAR ID [x]" || idd="\e[1;37mMODIFICAR/CAMBIAR ID"
[[ ! -e /etc/CAT-BOT/token ]] && tkn="\e[1;31m[!] CONFIGURAR TOKEN [x]" || tkn="\e[1;37mMODIFICAR/CAMBIAR TOKEN"
clear&&clear
figlet 'BOT-MENU'|lolcat
msg -b
power
echo -e "\e[1;34mBOTGEN: $bp | \e[1;34mGEN: $hp | SCP: 4"
msg -b
menu_func "$idd" "$tkn" 'ENVIAR MENSAJE' "$pb" "$ph" "UPDATE BOT" "REINSTALAR SCRIPTS"
back
case `selection_fun 10` in
*);;
esac