From cf991d9a1c0c178af88ac0fba1ced59719e8c181 Mon Sep 17 00:00:00 2001 From: Leon Date: Mon, 2 Aug 2021 20:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8Fix=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/sh/1custom.sh | 4 ++-- Scripts/sh/1customCDN.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/sh/1custom.sh b/Scripts/sh/1custom.sh index b7b6473..6633228 100644 --- a/Scripts/sh/1custom.sh +++ b/Scripts/sh/1custom.sh @@ -207,12 +207,12 @@ set_bot_json(){ ql bot 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 "----- 以上为示例,以下为你的配置 -----" + 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 - sed -i "s/123456789/${user_id}/" $bot_json + 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 sed -i "s/ASDFAWEFADSFAWEFDSFASFD/${api_hash}/" $bot_json diff --git a/Scripts/sh/1customCDN.sh b/Scripts/sh/1customCDN.sh index 61a41d3..83c9433 100644 --- a/Scripts/sh/1customCDN.sh +++ b/Scripts/sh/1customCDN.sh @@ -207,12 +207,12 @@ set_bot_json(){ ql bot 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 "----- 以上为示例,以下为你的配置 -----" + 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 - sed -i "s/123456789/${user_id}/" $bot_json + 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 sed -i "s/ASDFAWEFADSFAWEFDSFASFD/${api_hash}/" $bot_json