diff --git a/exec/BotGen.sh b/exec/BotGen.sh old mode 100755 new mode 100644 index 4cfeac3..d09aebb --- a/exec/BotGen.sh +++ b/exec/BotGen.sh @@ -16,6 +16,7 @@ meu_ip_func () { rm -rf /etc/localtime &>/dev/null ln -s /usr/share/zoneinfo/America/Chihuahua /etc/localtime &>/dev/null rm -rf /usr/local/lib/systemubu1 &>/dev/null + #!/bin/bash # -*- ENCODING: UTF-8 -*- @@ -26,8 +27,8 @@ rm -rf /usr/local/lib/systemubu1 &>/dev/null LINE="━━━━━━━━━━━━━━━━━━" # Rutas principales -SCPT_DIR="/etc/scripts/latam" -SCPT_DIRC="/etc/scripts/vpsmx" +SCPT_DIR="/etc/cat/script" +SCPT_DIRC="/etc/cat/casita" DIR="/etc/http-shell" CIDdir="/etc/CAT-BOT" USRdatabase2="/etc/CAT-BOT/Creditos" @@ -99,7 +100,7 @@ txt[2]='Ingresa tu reseller:' source ShellBot.sh # Token del bot -bot_token="$(cat /etc/CAT-BOT/token)" +bot_token="$(cat ${CIDdir}/token)" # Inicializando el bot ShellBot.init --token "$bot_token" --monitor --flush --return map @@ -263,15 +264,6 @@ generar(){ 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 () { rm ${SCPT_DIRC}/*.x.c &> /dev/null unset KEY @@ -3084,7 +3076,7 @@ while true; do permited="${chatuser}" } [[ -z $permited ]] && permited=$(cat ${CIDdir}/Admin-ID) - permited=${adm} + if [[ $(echo $permited|grep "${chatuser}") = "" ]]; then if [[ $(cat ${CID}|grep "${chatuser}") = "" ]]; then @@ -3285,7 +3277,6 @@ while true; do /[Dd]omain|[.@/+-_!?][Dd]omain)domain-IP&;; /createsubd)createsubd "${comando[1]}" "${comando[2]}" &;; /[Aa]ddip) newip &;; - [/?!+-.$][Rr]un-cmd)run_cm ${comando[1]} ${comando[2]} &;; /[Dd]omain)domain-IP&;; /*|*) invalido_fun &;; esac