File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4747
4848 bot_token=$( cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep ' $botToken' | cut -d" '" -f2)
4949 bot_token2=$( cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep ' $botToken' | cut -d' "' -f2)
50- bot_url=$( cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep ' $botUrl' | cut -d' "' -f2)
50+ bot_url=$( cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep ' $botUrl' | cut -d' "' -d " ' " - f2)
5151
5252 filepath=" /var/www/html/wizwizxui-timebot/baseInfo.php"
5353
133133 echo -e " \n\e[92mUpdating ...\033[0m\n"
134134
135135 bot_token=$( cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep ' $botToken' | cut -d" '" -f2)
136+ bot_token2=$( cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep ' $botToken' | cut -d' "' -f2)
136137
137138 filepath=" /var/www/html/wizwizxui-timebot/baseInfo.php"
138139
141142 MESSAGE=" 🕹 WizWiz panel has been successfully updated!"
142143
143144 curl -s -X POST " https://api.telegram.org/bot${bot_token} /sendMessage" -d chat_id=" ${bot_value} " -d text=" $MESSAGE "
145+ curl -s -X POST " https://api.telegram.org/bot${bot_token2} /sendMessage" -d chat_id=" ${bot_value} " -d text=" $MESSAGE "
144146
145147 sleep 1
146148
214216
215217 wait
216218
217- BOT_TOKEN=$( cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep ' $botToken' | cut -d" '" -f2)
219+ BOT_TOKEN=$( cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep ' $botToken' | cut -d' " ' -d " '" -f2)
218220 ROOT_USER=$( cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep ' $dbUserName' | cut -d" '" -f2)
219221 ROOT_PASSWORD=$( cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep ' $dbPassword' | cut -d" '" -f2)
220222 BOT_URL=$( cat /var/www/html/wizwizxui-timebot/baseInfo.php | grep ' $botUrl' | cut -d' "' -f2)
You can’t perform that action at this time.
0 commit comments