From 137527531a51857f0cf30df30ded306cde29cbe2 Mon Sep 17 00:00:00 2001 From: Leon Date: Mon, 2 Aug 2021 20:48:12 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/sh/1custom.sh | 8 ++++---- Scripts/sh/1customCDN.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Scripts/sh/1custom.sh b/Scripts/sh/1custom.sh index 1750bc8..bdcb2b2 100644 --- a/Scripts/sh/1custom.sh +++ b/Scripts/sh/1custom.sh @@ -208,10 +208,10 @@ set_bot_json(){ sleep 5 echo -e "\"//user_id\": \"↓↓↓ 你的USERID,去除双引号 ↓↓↓\",\n\"user_id\": 123456789,\n\"//bot_token\": \"↓↓↓ 你的机器人TOKEN ↓↓↓\",\n\"bot_token\": \"123456789:ABCDEFGSHSFDASDFAD\",\n\"//api_id\": \"↓↓↓ https://my.telegram.org 在该网站申请到的id ↓↓↓\",\n\"api_id\": \"456423156\",\n\"//api_hash\": \"↓↓↓ https://my.telegram.org 在该网站申请到的hash ↓↓↓\",\n\"api_hash\": \"ASDFAWEFADSFAWEFDSFASFD\"," echo -e "----- 以上为示例,以下为你的配置(不要引号) -----" - read -p "\"user_id\":\ " user_id - read -p "\"bot_token\":\ " bot_token - read -p "\"api_id\":\ " api_id - read -p "\"api_hash\":\ " api_hash + read -p "\"user_id\": " user_id + read -p "\"bot_token\": " bot_token + read -p "\"api_id\": " api_id + read -p "\"api_hash\": " api_hash sed -i "s/123456789,/${user_id},/" $bot_json sed -ri "s/123456789\:ABCDEFGSHSFDASDFAD/${bot_token}/" $bot_json sed -i "s/456423156/${api_id}/" $bot_json diff --git a/Scripts/sh/1customCDN.sh b/Scripts/sh/1customCDN.sh index 0e0b363..a702f45 100644 --- a/Scripts/sh/1customCDN.sh +++ b/Scripts/sh/1customCDN.sh @@ -208,10 +208,10 @@ set_bot_json(){ sleep 5 echo -e "\"//user_id\": \"↓↓↓ 你的USERID,去除双引号 ↓↓↓\",\n\"user_id\": 123456789,\n\"//bot_token\": \"↓↓↓ 你的机器人TOKEN ↓↓↓\",\n\"bot_token\": \"123456789:ABCDEFGSHSFDASDFAD\",\n\"//api_id\": \"↓↓↓ https://my.telegram.org 在该网站申请到的id ↓↓↓\",\n\"api_id\": \"456423156\",\n\"//api_hash\": \"↓↓↓ https://my.telegram.org 在该网站申请到的hash ↓↓↓\",\n\"api_hash\": \"ASDFAWEFADSFAWEFDSFASFD\"," echo -e "----- 以上为示例,以下为你的配置(不要引号) -----" - read -p "\"user_id\":\ " user_id - read -p "\"bot_token\":\ " bot_token - read -p "\"api_id\":\ " api_id - read -p "\"api_hash\":\ " api_hash + read -p "\"user_id\": " user_id + read -p "\"bot_token\": " bot_token + read -p "\"api_id\": " api_id + read -p "\"api_hash\": " api_hash sed -i "s/123456789,/${user_id},/" $bot_json sed -ri "s/123456789\:ABCDEFGSHSFDASDFAD/${bot_token}/" $bot_json sed -i "s/456423156/${api_id}/" $bot_json