🔨Fix
This commit is contained in:
parent
1f69b69fcc
commit
b9f5439519
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user