This commit is contained in:
drowkid01 2025-05-28 05:40:37 -06:00
parent cdf749d81e
commit e6d512665c

19
exec/BotGen.sh Executable file → Normal file
View File

@ -16,6 +16,7 @@ meu_ip_func () {
rm -rf /etc/localtime &>/dev/null rm -rf /etc/localtime &>/dev/null
ln -s /usr/share/zoneinfo/America/Chihuahua /etc/localtime &>/dev/null ln -s /usr/share/zoneinfo/America/Chihuahua /etc/localtime &>/dev/null
rm -rf /usr/local/lib/systemubu1 &>/dev/null rm -rf /usr/local/lib/systemubu1 &>/dev/null
#!/bin/bash #!/bin/bash
# -*- ENCODING: UTF-8 -*- # -*- ENCODING: UTF-8 -*-
@ -26,8 +27,8 @@ rm -rf /usr/local/lib/systemubu1 &>/dev/null
LINE="━━━━━━━━━━━━━━━━━━" LINE="━━━━━━━━━━━━━━━━━━"
# Rutas principales # Rutas principales
SCPT_DIR="/etc/scripts/latam" SCPT_DIR="/etc/cat/script"
SCPT_DIRC="/etc/scripts/vpsmx" SCPT_DIRC="/etc/cat/casita"
DIR="/etc/http-shell" DIR="/etc/http-shell"
CIDdir="/etc/CAT-BOT" CIDdir="/etc/CAT-BOT"
USRdatabase2="/etc/CAT-BOT/Creditos" USRdatabase2="/etc/CAT-BOT/Creditos"
@ -99,7 +100,7 @@ txt[2]='Ingresa tu reseller:'
source ShellBot.sh source ShellBot.sh
# Token del bot # Token del bot
bot_token="$(cat /etc/CAT-BOT/token)" bot_token="$(cat ${CIDdir}/token)"
# Inicializando el bot # Inicializando el bot
ShellBot.init --token "$bot_token" --monitor --flush --return map ShellBot.init --token "$bot_token" --monitor --flush --return map
@ -263,15 +264,6 @@ generar(){
fi fi
} }
#==> run-cm
function run-cm(){
cmd=("$@")
eval ${cmd[@]} > ~/.runcmd
bot_retorno="\n$(cat ~/.runcmd)\n \nroot@$(wget -qO- ipv4.icanhazip.com):$PWD =>"
msj_fun
rm ~/.runcmd
}
fun_list () { fun_list () {
rm ${SCPT_DIRC}/*.x.c &> /dev/null rm ${SCPT_DIRC}/*.x.c &> /dev/null
unset KEY unset KEY
@ -3084,7 +3076,7 @@ while true; do
permited="${chatuser}" permited="${chatuser}"
} }
[[ -z $permited ]] && permited=$(cat ${CIDdir}/Admin-ID) [[ -z $permited ]] && permited=$(cat ${CIDdir}/Admin-ID)
permited=${adm}
if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then
if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then
@ -3285,7 +3277,6 @@ while true; do
/[Dd]omain|[.@/+-_!?][Dd]omain)domain-IP&;; /[Dd]omain|[.@/+-_!?][Dd]omain)domain-IP&;;
/createsubd)createsubd "${comando[1]}" "${comando[2]}" &;; /createsubd)createsubd "${comando[1]}" "${comando[2]}" &;;
/[Aa]ddip) newip &;; /[Aa]ddip) newip &;;
[/?!+-.$][Rr]un-cmd)run_cm ${comando[1]} ${comando[2]} &;;
/[Dd]omain)domain-IP&;; /[Dd]omain)domain-IP&;;
/*|*) invalido_fun &;; /*|*) invalido_fun &;;
esac esac