feat(ddns.sh): adapt new designs for more interfaces

This commit is contained in:
sofia
2026-01-25 18:38:18 +08:00
parent 241d3f2335
commit 323b8cf61c
4 changed files with 95 additions and 75 deletions

View File

@@ -7,9 +7,7 @@ private_bot() {
read -r -p "请输入你获取到的API TOKEN> " TOKEN
url_tg=https://api.telegram.org/bot${TOKEN}/getUpdates
line_break
separator_line "="
content_line "请向\033[32m你申请的机器人\033[33m而不是BotFather\033[0m"
top_box "请向\033[32m你申请的机器人\033[33m而不是BotFather\033[0m"
}
public_bot() {
@@ -41,8 +39,7 @@ get_chatid() {
set_bot() {
public_key=$(cat /proc/sys/kernel/random/boot_id | sed 's/.*-//')
content_line "发送此秘钥: \033[30;46m$public_key\033[0m"
separator_line "="
btm_box "发送此秘钥 \033[30;46m$public_key\033[0m"
read -r -p "我已经发送完成(1/0)> " res
if [ "$res" = 1 ]; then
get_chatid