This commit is contained in:
Leon 2021-08-02 11:03:45 +08:00 committed by GitHub
parent 1f69b69fcc
commit b9f5439519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,19 +215,19 @@ set_bot_json(){
sed -i "s/456423156/${api_id}/" $bot_json sed -i "s/456423156/${api_id}/" $bot_json
sed -i "s/ASDFAWEFADSFAWEFDSFASFD/${api_hash}/" $bot_json sed -i "s/ASDFAWEFADSFAWEFDSFASFD/${api_hash}/" $bot_json
} }
# 再运行一次 ql bot # 重启
run_ql_bot(){ ql_restart(){
ql bot ql restart
} }
if [ "${all}" = 1 ]; then if [ "${all}" = 1 ]; then
add_ql_bot && set_bot_json && run_ql_bot add_ql_bot && set_bot_json && ql_restart
else else
case ${bot} in case ${bot} in
0) echo "已为您跳过 bot 操作" 0) echo "已为您跳过 bot 操作"
;; ;;
1) add_ql_bot 1) add_ql_bot
;; ;;
2) add_ql_bot && set_bot_json && run_ql_bot 2) add_ql_bot && set_bot_json && ql_restart
esac esac
fi fi