diff --git a/exec/BotGen.sh b/exec/BotGen.sh index efaf985..f4709f3 100755 --- a/exec/BotGen.sh +++ b/exec/BotGen.sh @@ -30,8 +30,8 @@ LINE="━━━━━━━━━━━━━━━━━━" SCPT_DIR="/etc/scripts/latam" SCPT_DIRC="/etc/scripts/vpsmx" DIR="/etc/http-shell" -CIDdir="/etc/adm-db" -USRdatabase2="/etc/adm-db/Creditos" +CIDdir="/etc/CAT-BOT" +USRdatabase2="/etc/CAT-BOT/Creditos" # Archivos y directorios específicos LIST="lista-arq" @@ -101,7 +101,7 @@ source ShellBot.sh # Token del bot #bot_token="$(cat ${CIDdir}/token)" -bot_token=$(cat /etc/adm-db/data|awk -F '|' '{print $2}') +bot_token=$(cat /etc/CAT-BOT/data|awk -F '|' '{print $2}') adm=$(cat $CIDdir/data|awk -F '|' '{print $1}') # Inicializando el bot @@ -184,9 +184,9 @@ gerar_keys () { unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - numkey_gen=$(grep -o -i $nombrevalue /etc/adm-db/num-key.cont | wc -l) - limcont=$(cat /etc/adm-db/limit) - [[ "$limcont" -ge "998" ]] && limted="♾️" || limted=$(cat /etc/adm-db/limit) + numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l) + limcont=$(cat /etc/CAT-BOT/limit) + [[ "$limcont" -ge "998" ]] && limted="♾️" || limted=$(cat /etc/CAT-BOT/limit) [[ "$(( $limcont - $numkey_gen ))" -ge "900" ]] && credres="♾️" || credres=$(( $limcont - $numkey_gen)) [[ -z $nBot ]] && nBot=$(ShellBot.username) valuekey="$(date | md5sum | head -c10)" @@ -204,7 +204,7 @@ gerar_keys () { bot_retorno+="🔑 KEY GENERADA DARNIX🔑 \n" bot_retorno+="\n" bot_retorno+="👤 SLOGAN: : $credill\n" - bot_retorno+="$(cat < /etc/adm-db/resel)\n" + bot_retorno+="$(cat < /etc/CAT-BOT/resel)\n" bot_retorno+="\n" bot_retorno+="💾 Instalador:\n" bot_retorno+="\n" @@ -296,23 +296,23 @@ fun_list () { unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - if [[ "$(grep -o -i $nombrevalue /etc/adm-db/num-key.cont | wc -l)" -ge "$(cat < /etc/adm-db/limit)" ]]; then + if [[ "$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l)" -ge "$(cat < /etc/CAT-BOT/limit)" ]]; then local bot_retorno="$LINE\n" [[ -z ${callback_query_from_first_name} ]] && firsnme="${message_from_first_name}" || firsnme="${callback_query_from_first_name}" [[ -z ${callback_query_from_last_name} ]] && lastnme="${message_from_last_name}" || lastnme="${callback_query_from_last_name}" bot_retorno+="👤 ●-- Hola ${firsnme} ${lastnme}\n" bot_retorno+="Su 🆔 alcanzó el Límite de KEYS permitidos\n" - bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/adm-db/limit) \n" - bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/adm-db/num-key.cont | wc -l) 』Keys en el BOT \n" + bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/CAT-BOT/limit) \n" + bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l) 』Keys en el BOT \n" bot_retorno+="Espera 12 horas a que se libere o contacta al ADM lo haga\n" bot_retorno+="$LINE\n" msj_fun exit else - echo "$nombrevalue" >> /etc/adm-db/num-key.cont + echo "$nombrevalue" >> /etc/CAT-BOT/num-key.cont fi numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l) - numkey_gen=$(grep -o -i $nombrevalue /etc/adm-db/num-key.cont | wc -l) + numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l) #ADM BASIC arqslist="$BASICINSTC" for arqx in `echo "${arqslist}"`; do @@ -380,9 +380,9 @@ gerar_keyc () { unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - numkey_gen=$(grep -o -i $nombrevalue /etc/adm-db/num-key.cont | wc -l) - limcont=$(cat /etc/adm-db/limit) - [[ "$limcont" -ge "998" ]] && limted="♾️" || limted=$(cat /etc/adm-db/limit) + numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l) + limcont=$(cat /etc/CAT-BOT/limit) + [[ "$limcont" -ge "998" ]] && limted="♾️" || limted=$(cat /etc/CAT-BOT/limit) [[ "$(( $limcont - $numkey_gen ))" -ge "900" ]] && credres="♾️" || credres=$(( $limcont - $numkey_gen)) [[ -z $nBot ]] && nBot=$(ShellBot.username) valuekey="$(date | md5sum | head -c10)" @@ -399,7 +399,7 @@ gerar_keyc () { bot_retorno+="🔑 KEY GENERADA DARNIX🔑 \n" bot_retorno+="\n" bot_retorno+="👤 SLOGAN: : $credill\n" - bot_retorno+="$(cat < /etc/adm-db/resel)\n" + bot_retorno+="$(cat < /etc/CAT-BOT/resel)\n" bot_retorno+="\n" bot_retorno+="◈ TOCA EL INSTALADOR ◈:\n" bot_retorno+="\n" @@ -447,23 +447,23 @@ gerar_keyc () { unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - if [[ "$(grep -o -i $nombrevalue /etc/adm-db/num-key.cont | wc -l)" -ge "$(cat < /etc/adm-db/limit)" ]]; then + if [[ "$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l)" -ge "$(cat < /etc/CAT-BOT/limit)" ]]; then local bot_retorno="$LINE\n" [[ -z ${callback_query_from_first_name} ]] && firsnme="${message_from_first_name}" || firsnme="${callback_query_from_first_name}" [[ -z ${callback_query_from_last_name} ]] && lastnme="${message_from_last_name}" || lastnme="${callback_query_from_last_name}" bot_retorno+="👤 ●-- Hola ${firsnme} ${lastnme}\n" bot_retorno+="Su 🆔 alcanzó el Límite de KEYS permitidos\n" - bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/adm-db/limit) \n" - bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/adm-db/num-key.cont | wc -l) 』Keys en el BOT \n" + bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/CAT-BOT/limit) \n" + bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l) 』Keys en el BOT \n" bot_retorno+="Espera 12 horas a que se libere o contacta al ADM lo haga\n" bot_retorno+="$LINE\n" msj_fun exit else - echo "$nombrevalue" >> /etc/adm-db/num-key.cont + echo "$nombrevalue" >> /etc/CAT-BOT/num-key.cont fi numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l) - numkey_gen=$(grep -o -i $nombrevalue /etc/adm-db/num-key.cont | wc -l) + numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l) #ADM BASIC arqslist="$BASICINSTC" for arqx in `echo "${arqslist}"`; do @@ -542,9 +542,9 @@ gerar_key () { unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - numkey_gena=$(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l) - limconta=$(cat /etc/adm-db/limita) - [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/adm-db/limita) + numkey_gena=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) + limconta=$(cat /etc/CAT-BOT/limita) + [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/CAT-BOT/limita) [[ "$(( $limconta - $numkey_gena ))" -ge "900" ]] && credress="♾️" || credress=$(( $limconta - $numkey_gena)) [[ -z $nBot ]] && nBot=$(ShellBot.username) valuekey="$(date | md5sum | head -c10)" @@ -561,7 +561,7 @@ gerar_key () { [[ -z ${usrLOP} ]] && bot_retorno+="🆔 ●⸺ [ ${nombrevalue} $grupCHAT ] \n" bot_retorno+="\n" bot_retorno+="👤 SLOGAN: : $credill\n" - bot_retorno+="$(cat < /etc/adm-db/reselkey)\n" + bot_retorno+="$(cat < /etc/CAT-BOT/reselkey)\n" bot_retorno+="❗️ Recuerda tener un subdominio valido ❗️\n" bot_retorno+="❗️ Puedes obtener uni en duckdns.org ❗️\n" bot_retorno+="\n" @@ -611,23 +611,23 @@ fun_lista () { unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - if [[ "$(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l)" -ge "$(cat < /etc/adm-db/limita)" ]]; then + if [[ "$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)" -ge "$(cat < /etc/CAT-BOT/limita)" ]]; then local bot_retorno="$LINE\n" [[ -z ${callback_query_from_first_name} ]] && firsnme="${message_from_first_name}" || firsnme="${callback_query_from_first_name}" [[ -z ${callback_query_from_last_name} ]] && lastnme="${message_from_last_name}" || lastnme="${callback_query_from_last_name}" bot_retorno+="👤 ●-- Hola ${firsnme} ${lastnme}\n" bot_retorno+="Su 🆔 alcanzó el Límite de KEYS permitidos\n" - bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/adm-db/limita) \n" - bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l) 』Keys en el BOT \n" + bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/CAT-BOT/limita) \n" + bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) 』Keys en el BOT \n" bot_retorno+="Espera 12 horas a que se libere o contacta al ADM lo haga\n" bot_retorno+="$LINE\n" msj_fun exit else - echo "$nombrevalue" >> /etc/adm-db/num-keys.cont + echo "$nombrevalue" >> /etc/CAT-BOT/num-keys.cont fi numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l) - numkey_gen=$(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l) + numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) #ADM BASIC arqslist="$BASICINST" for arqx in `echo "${arqslist}"`; do @@ -672,9 +672,9 @@ gerar_cas () { unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - numkey_gena=$(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l) - limconta=$(cat /etc/adm-db/limita) - [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/adm-db/limita) + numkey_gena=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) + limconta=$(cat /etc/CAT-BOT/limita) + [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/CAT-BOT/limita) [[ "$(( $limconta - $numkey_gena ))" -ge "900" ]] && credress="♾️" || credress=$(( $limconta - $numkey_gena)) [[ -z $nBot ]] && nBot=$(ShellBot.username) valuekey="$(date | md5sum | head -c10)" @@ -691,7 +691,7 @@ gerar_cas () { bot_retorno+="🔑 KEY GENERADA V11X🔑 \n" bot_retorno+="\n" bot_retorno+="👤 SLOGAN: : $credill\n" - bot_retorno+="$(cat < /etc/adm-db/resel)\n" + bot_retorno+="$(cat < /etc/CAT-BOT/resel)\n" bot_retorno+="\n" bot_retorno+="◈ TOCA EL INSTALADOR ◈:\n" bot_retorno+="\n" @@ -738,23 +738,23 @@ fun_listaf () { unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - if [[ "$(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l)" -ge "$(cat < /etc/adm-db/limita)" ]]; then + if [[ "$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)" -ge "$(cat < /etc/CAT-BOT/limita)" ]]; then local bot_retorno="$LINE\n" [[ -z ${callback_query_from_first_name} ]] && firsnme="${message_from_first_name}" || firsnme="${callback_query_from_first_name}" [[ -z ${callback_query_from_last_name} ]] && lastnme="${message_from_last_name}" || lastnme="${callback_query_from_last_name}" bot_retorno+="👤 ●-- Hola ${firsnme} ${lastnme}\n" bot_retorno+="Su 🆔 alcanzó el Límite de KEYS permitidos\n" - bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/adm-db/limita) \n" - bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l) 』Keys en el BOT \n" + bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/CAT-BOT/limita) \n" + bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) 』Keys en el BOT \n" bot_retorno+="Espera 12 horas a que se libere o contacta al ADM lo haga\n" bot_retorno+="$LINE\n" msj_fun exit else - echo "$nombrevalue" >> /etc/adm-db/num-keys.cont + echo "$nombrevalue" >> /etc/CAT-BOT/num-keys.cont fi numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l) - numkey_gen=$(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l) + numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) #ADM BASIC arqslist="$BASICINSTC" for arqx in `echo "${arqslist}"`; do @@ -799,9 +799,9 @@ autovpsf() { unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - numkey_gena=$(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l) - limconta=$(cat /etc/adm-db/limita) - [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/adm-db/limita) + numkey_gena=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) + limconta=$(cat /etc/CAT-BOT/limita) + [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/CAT-BOT/limita) [[ "$(( $limconta - $numkey_gena ))" -ge "900" ]] && credress="♾️" || credress=$(( $limconta - $numkey_gena)) [[ -z $nBot ]] && nBot=$(ShellBot.username) valuekey="$(date | md5sum | head -c10)" @@ -831,7 +831,7 @@ autovpsf() { [[ -z ${usrLOP} ]] && bot_retorno+="🆔 ●⸺ [ ${nombrevalue} $grupCHAT ] \n" bot_retorno+="\n" bot_retorno+="\n" - bot_retorno+="$(cat < /etc/adm-db/resel)\n" + bot_retorno+="$(cat < /etc/CAT-BOT/resel)\n" bot_retorno+="❗️ Recuerda tener un subdominio valido ❗️\n" bot_retorno+="❗️ Puedes obtener uni en duckdns.org ❗️\n" bot_retorno+="\n" @@ -879,23 +879,23 @@ fun_listad () { unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - if [[ "$(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l)" -ge "$(cat < /etc/adm-db/limita)" ]]; then + if [[ "$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l)" -ge "$(cat < /etc/CAT-BOT/limita)" ]]; then local bot_retorno="$LINE\n" [[ -z ${callback_query_from_first_name} ]] && firsnme="${message_from_first_name}" || firsnme="${callback_query_from_first_name}" [[ -z ${callback_query_from_last_name} ]] && lastnme="${message_from_last_name}" || lastnme="${callback_query_from_last_name}" bot_retorno+="👤 ●-- Hola ${firsnme} ${lastnme}\n" bot_retorno+="Su 🆔 alcanzó el Límite de KEYS permitidos\n" - bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/adm-db/limita) \n" - bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l) 』Keys en el BOT \n" + bot_retorno+="▫️ Limite Permitido Vencido: $(cat < /etc/CAT-BOT/limita) \n" + bot_retorno+="🔴 Generaste 『 $(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) 』Keys en el BOT \n" bot_retorno+="Espera 12 horas a que se libere o contacta al ADM lo haga\n" bot_retorno+="$LINE\n" msj_fun exit else - echo "$nombrevalue" >> /etc/adm-db/num-keys.cont + echo "$nombrevalue" >> /etc/CAT-BOT/num-keys.cont fi numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l) - numkey_gen=$(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l) + numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) #ADM BASIC arqslist="$BASICINST" for arqx in `echo "${arqslist}"`; do @@ -1123,7 +1123,7 @@ restart_genbot () { myid_src () { MSG_id=$((${message_message_id} + 1)) [[ -z ${callback_query_from_username} ]] && nUSER=${message_from_username} || nUSER=${callback_query_from_username} - [[ ! -z $(cat /etc/adm-db/Admin-ID|grep "${chatuser}" ) ]] && { + [[ ! -z $(cat /etc/CAT-BOT/Admin-ID|grep "${chatuser}" ) ]] && { bot_retorno=" $LINE\n" bot_retorno+="▫️ Hola @${nUSER} \n" bot_retorno+="▫️ Bienvenido ADMIN\n" @@ -1221,8 +1221,8 @@ list_IP () { unset idchek [[ -z ${idchek} ]] && idchek="${message_from_id}" [[ -z ${idchek} ]] && idchek="${callback_query_from_id}" - [[ -z "$(cat /etc/adm-db/User-ID | grep ${idchek} )" ]] && { - [[ "$(cat /etc/adm-db/Admin-ID)" == "${idchek}" ]] && { + [[ -z "$(cat /etc/CAT-BOT/User-ID | grep ${idchek} )" ]] && { + [[ "$(cat /etc/CAT-BOT/Admin-ID)" == "${idchek}" ]] && { cat /var/www/html/dani/checkIP.log > /tmp/ips echo -e " $(cat /tmp/ips | awk '{print $3}' | uniq)" > /tmp/ipchek lsid=$(cat -n /tmp/ipchek) @@ -1295,8 +1295,8 @@ list_IP () { unset idchek [[ -z ${idchek} ]] && idchek="${message_from_id}" [[ -z ${idchek} ]] && idchek="${callback_query_from_id}" - [[ -z "$(cat /etc/adm-db/User-ID | grep ${idchek} )" ]] && { - [[ "$(cat /etc/adm-db/Admin-ID)" == "${idchek}" ]] && { + [[ -z "$(cat /etc/CAT-BOT/User-ID | grep ${idchek} )" ]] && { + [[ "$(cat /etc/CAT-BOT/Admin-ID)" == "${idchek}" ]] && { cat /var/www/html/dani/checkIP.log > /tmp/ips echo -e " $(cat /tmp/ips | awk '{print $3}' | uniq)" > /tmp/ipchek lsid=$(cat -n /tmp/ipchek) @@ -1343,10 +1343,10 @@ addID_reply () { bot_retorno+="$LINE\n" bot_retorno+=" ⚜ Power ⚜\n" unset i - for i in $(cat /etc/adm-db/User-ID | awk '{print $3}'); do + for i in $(cat /etc/CAT-BOT/User-ID | awk '{print $3}'); do [[ "$(date -d $(date '+%C%y-%m-%d') +%s)" -ge "$(date -d $i +%s)" ]] && { - for id in $(cat /etc/adm-db/User-ID | grep "$i" | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig'); do - sed -i "${id}/d" /etc/adm-db/User-ID + for id in $(cat /etc/CAT-BOT/User-ID | grep "$i" | awk '{print $1}' | sed -e 's/[^a-z0-9 -]//ig'); do + sed -i "${id}/d" /etc/CAT-BOT/User-ID bot_retor=" ❗️ 𝗦𝗜𝗡 𝗔𝗖𝗖𝗘𝗦𝗢 𝗩𝗜𝗣 ❗️ \n" bot_retor+=" Su acceso vip al bot a finalizado \n" bot_retor+="❌ Fin : $(date '+%C%y-%m-%d') - $(date +%R) \n" @@ -1555,9 +1555,9 @@ menu_src () { [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l) - numkey_gena=$(grep -o -i $nombrevalue /etc/adm-db/num-keys.cont | wc -l) - limconta=$(cat /etc/adm-db/limita) - [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/adm-db/limita) + numkey_gena=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-keys.cont | wc -l) + limconta=$(cat /etc/CAT-BOT/limita) + [[ "$limconta" -ge "998" ]] && limteda="♾️" || limteda=$(cat /etc/CAT-BOT/limita) [[ "$(( $limconta - $numkey_gena ))" -ge "900" ]] && credress="♾️" || credress=$(( $limconta - $numkey_gena)) ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \ --text "REGRESANDO AL MENU INICIO" @@ -1632,7 +1632,7 @@ menu_src () { [[ -z ${callback_query_from_first_name} ]] && firsnme="${message_from_first_name}" || firsnme="${callback_query_from_first_name}" [[ -z ${callback_query_from_last_name} ]] && lastnme="${message_from_last_name}" || lastnme="${callback_query_from_last_name}" unset creditos - creditos="$(cat /etc/adm-db/Creditos/Mensaje_$chatuser.txt)" + creditos="$(cat /etc/CAT-BOT/Creditos/Mensaje_$chatuser.txt)" [[ ! $creditos ]] && credi="Defaul: ${firsnme} ${lastnme}" || credi="Personal: $creditos" unset PID_GEN @@ -1652,13 +1652,13 @@ menu_src () { usadas="$(cat /etc/http-instas)" [[ ! $usadas ]] && k_used="0" || k_used="$usadas" numkey_used=$(grep -o -i $nombrevalue /etc/gerar-sh-log | wc -l) - numkey_gen=$(grep -o -i $message_chat_id /etc/adm-db/num-key.cont | wc -l) + numkey_gen=$(grep -o -i $message_chat_id /etc/CAT-BOT/num-key.cont | wc -l) unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - numkey_gen=$(grep -o -i $nombrevalue /etc/adm-db/num-key.cont | wc -l) - limcont=$(cat /etc/adm-db/limit) - [[ "$limcont" -ge "998" ]] && limted="♾️" || limted=$(cat /etc/adm-db/limit) + numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l) + limcont=$(cat /etc/CAT-BOT/limit) + [[ "$limcont" -ge "998" ]] && limted="♾️" || limted=$(cat /etc/CAT-BOT/limit) [[ "$(( $limcont - $numkey_gen ))" -ge "900" ]] && credres="🎊 Usted tiene keys Ilimitados" || credres="⚠️Keys Restantes a Generar: $(( $limcont - $numkey_gen))" [[ ! ${keytxt}/key_$chatuser.txt ]] && kg="0" || kg=$(cat ${keytxt}/key_$chatuser.txt | wc -l) ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \ @@ -1673,7 +1673,7 @@ menu_src () { bot_retorno+="🔘 |-- El dia [ $data_user ] \n" bot_retorno+="\n" bot_retorno+="📳 Notificacion del BOT \n" - bot_retorno+="$(cat < /etc/adm-db/resell)\n" + bot_retorno+="$(cat < /etc/CAT-BOT/resell)\n" bot_retorno+="$checkPID_GEN\n" bot_retorno+="\n" bot_retorno+="📡 |-- BOT Status [ $PID_GEN ]\n" @@ -1699,9 +1699,9 @@ menu_src () { [[ -z ${callback_query_from_first_name} ]] && firsnme="${message_from_first_name}" || firsnme="${callback_query_from_first_name}" [[ -z ${callback_query_from_last_name} ]] && lastnme="${message_from_last_name}" || lastnme="${callback_query_from_last_name}" unset creditos - creditos="$(cat /etc/adm-db/Creditos/Mensaje_$chatuser.txt)" + creditos="$(cat /etc/CAT-BOT/Creditos/Mensaje_$chatuser.txt)" [[ ! $creditos ]] && credi="Defaul: ${firsnme} ${lastnme}" || credi="Personal: $creditos" - $(cat /etc/adm-db/User-ID| wc -l) + $(cat /etc/CAT-BOT/User-ID| wc -l) unset usadas usadas="$(cat /etc/http-instas)" [[ ! $usadas ]] && k_used="0" || k_used="$usadas" @@ -1713,12 +1713,12 @@ menu_src () { bot_retorno="━━━━◢ MENU PRINCIPAL ◣━━━━\n" datauser dnxsub - bot_retorno+="🆔 |-- USUARIOS 𝗩𝗜𝗣 ACTIVOS: $(cat /etc/adm-db/User-ID| wc -l)\n" + bot_retorno+="🆔 |-- USUARIOS 𝗩𝗜𝗣 ACTIVOS: $(cat /etc/CAT-BOT/User-ID| wc -l)\n" bot_retorno+="🟢 |-- BOT STATUS: $PID_GEN \n" bot_retorno+="📵 |-- AUTO-DEL: $ve \n" bot_retorno+="🔔NOTY BOT USUARIOS \n" bot_retorno+="$checkPID_GEN\n" - bot_retorno+="$(cat < /etc/adm-db/resell)\n" + bot_retorno+="$(cat < /etc/CAT-BOT/resell)\n" bot_retorno+="🔐 |-- Key Activas Sin Usar 『 $(ls /etc/http-shell/ | grep name | wc -l) 』 🗝️ \n" bot_retorno+="🌐 |-- Inst. Totales del SCRIPT [ $k_used ] \n" bot_retorno+="🔑 |-- Keys Generadas del ADM [ $kg ] \n" @@ -1979,7 +1979,7 @@ autodel_id() { PIDV=$(ps aux|grep -v grep|grep "veri") if [[ -z $PIDV ]]; then echo "" - screen -dmS verificar /etc/adm-db/veri & + screen -dmS verificar /etc/CAT-BOT/veri & verificar="𝘼𝘾𝙏𝙄𝙑𝘼𝘿𝙊 -- 𝘾𝙊𝙉 𝙀𝙓𝙄𝙏𝙊\n 𝙖𝙪𝙩𝙤-𝙞𝙣𝙞𝙘𝙞𝙤 𝙘𝙖𝙙𝙖 1𝙝" else kill -9 $(ps aux |grep -v grep |grep -w "veri"|grep dmS|awk '{print $2}') &>/dev/null @@ -2016,8 +2016,8 @@ rm_resell(){ addADM_reply () { - [[ $(cat /etc/adm-db/Admin-ID | grep "${message_text[$id]}") = "" ]] && { - echo "${message_text[$id]}" >> /etc/adm-db/Admin-ID + [[ $(cat /etc/CAT-BOT/Admin-ID | grep "${message_text[$id]}") = "" ]] && { + echo "${message_text[$id]}" >> /etc/CAT-BOT/Admin-ID bot_retorno="$LINE\n" bot_retorno+="*ID agregado *\n" @@ -2061,7 +2061,7 @@ cupon_reply() { cupones_validos=$(curl -s "$github_url") # Verificar si el cupón ya ha sido canjeado previamente - if grep -q "^${cupon_ingresado}$" /etc/adm-db/Cupones-Canjeados; then + if grep -q "^${cupon_ingresado}$" /etc/CAT-BOT/Cupones-Canjeados; then # El cupón ya ha sido canjeado anteriormente bot_retorno="🎟️CUPON INVALIDO🎟️.\n" bot_retorno+="\n" @@ -2075,7 +2075,7 @@ cupon_reply() { bot_retorno+="$LINE\n" ## Contar cuántos usuarios han intentado usar el mismo cupón - usuarios_que_intentaron=$(grep -c "^${cupon_ingresado}$" /etc/adm-db/Intentos-Canje) + usuarios_que_intentaron=$(grep -c "^${cupon_ingresado}$" /etc/CAT-BOT/Intentos-Canje) # Envía el mensaje al administrador (debes proporcionar el ID del administrador) send_message_to_admin "${mensaje_admin}" @@ -2097,11 +2097,11 @@ cupon_reply() { if [ -n "$fecha_expiracion" ]; then # Cupón válido, guardar el ID de usuario y la fecha de expiración en un archivo de texto plano - echo "${user_id}|${fecha_expiracion}" >> /etc/adm-db/User-ID - echo "${user_id}|${fecha_expiracion}" >> /etc/adm-db/regcup + echo "${user_id}|${fecha_expiracion}" >> /etc/CAT-BOT/User-ID + echo "${user_id}|${fecha_expiracion}" >> /etc/CAT-BOT/regcup # Marcar el cupón como canjeado en el archivo de cupones canjeados - echo "${cupon_ingresado}" >> /etc/adm-db/Cupones-Canjeados + echo "${cupon_ingresado}" >> /etc/CAT-BOT/Cupones-Canjeados bot_retorno="$LINE\n" bot_retorno+="=====📩𝙈𝙀𝙉𝙎𝘼𝙅𝙀 𝙍𝙀𝘾𝙄𝘽𝙄𝘿𝙊📩=====\n" @@ -2532,9 +2532,9 @@ autovpsx() { unset nombrevalue [[ -z ${nombrevalue} ]] && nombrevalue="${message_from_id}" [[ -z ${nombrevalue} ]] && nombrevalue="${callback_query_from_id}" - numkey_gen=$(grep -o -i $nombrevalue /etc/adm-db/num-key.cont | wc -l) - limcont=$(cat /etc/adm-db/limit) - [[ "$limcont" -ge "998" ]] && limted="♾️" || limted=$(cat /etc/adm-db/limit) + numkey_gen=$(grep -o -i $nombrevalue /etc/CAT-BOT/num-key.cont | wc -l) + limcont=$(cat /etc/CAT-BOT/limit) + [[ "$limcont" -ge "998" ]] && limted="♾️" || limted=$(cat /etc/CAT-BOT/limit) [[ "$(( $limcont - $numkey_gen ))" -ge "900" ]] && credres="♾️" || credres=$(( $limcont - $numkey_gen)) [[ -z $nBot ]] && nBot=$(ShellBot.username) valuekey="$(date | md5sum | head -c10)" @@ -2564,7 +2564,7 @@ autovpsx() { [[ -z ${usrLOP} ]] && bot_retorno+="🆔 ●⸺ [ ${nombrevalue} $grupCHAT ] \n" bot_retorno+="\n" bot_retorno+="\n" - bot_retorno+="$(cat < /etc/adm-db/resel)\n" + bot_retorno+="$(cat < /etc/CAT-BOT/resel)\n" bot_retorno+="❗️ Recuerda tener un subdominio valido ❗️\n" bot_retorno+="\n" bot_retorno+="◈ TOCA EL INSTALADOR ◈:\n" @@ -3196,7 +3196,7 @@ while true; do ShellBot.sendMessage --chat_id $ID \ - --text "$(echo -e "$LINE\n𝗛𝗢𝗟𝗔 𝗕𝗜𝗘𝗡𝗩𝗘𝗡𝗜𝗗𝗢 \n\nEl ADM: $(cat < /etc/adm-db/ressx) Aprobo tu acceso\n\n𝗔𝗛𝗢𝗥𝗔 𝗧𝗜𝗘𝗡𝗘𝗦 𝗔𝗖𝗖𝗘𝗦𝗢 𝗩𝗜𝗣 𝗔𝗟 𝗕𝗢𝗧\n🆔 ●⸺: $ID \n🔘 Fin: $valid\n\nIngresa al Generador: /MI_ACCESO\n[ Acceso Activado ] 📌\n$LINE")" \ + --text "$(echo -e "$LINE\n𝗛𝗢𝗟𝗔 𝗕𝗜𝗘𝗡𝗩𝗘𝗡𝗜𝗗𝗢 \n\nEl ADM: $(cat < /etc/CAT-BOT/ressx) Aprobo tu acceso\n\n𝗔𝗛𝗢𝗥𝗔 𝗧𝗜𝗘𝗡𝗘𝗦 𝗔𝗖𝗖𝗘𝗦𝗢 𝗩𝗜𝗣 𝗔𝗟 𝗕𝗢𝗧\n🆔 ●⸺: $ID \n🔘 Fin: $valid\n\nIngresa al Generador: /MI_ACCESO\n[ Acceso Activado ] 📌\n$LINE")" \ --parse_mode html return 0