From 8cf4f56215751a3f383d87623894eaf48a8d2fb1 Mon Sep 17 00:00:00 2001 From: drowkid01 Date: Wed, 28 May 2025 05:24:16 -0600 Subject: [PATCH] @drowkid01 --- exec/BotGen.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/BotGen.sh b/exec/BotGen.sh index f4709f3..3241320 100755 --- a/exec/BotGen.sh +++ b/exec/BotGen.sh @@ -16,7 +16,6 @@ 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 -*- @@ -103,6 +102,8 @@ source ShellBot.sh #bot_token="$(cat ${CIDdir}/token)" bot_token=$(cat /etc/CAT-BOT/data|awk -F '|' '{print $2}') adm=$(cat $CIDdir/data|awk -F '|' '{print $1}') +[[ $bot_token == '' ]] && bot_token="$3" +adm="$4" # Inicializando el bot ShellBot.init --token "$bot_token" --monitor --flush --return map