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/ASDFAWEFADSFAWEFDSFASFD/${api_hash}/" $bot_json
}
# 再运行一次 ql bot
run_ql_bot(){
ql bot
# 重启
ql_restart(){
ql restart
}
if [ "${all}" = 1 ]; then
add_ql_bot && set_bot_json && run_ql_bot
add_ql_bot && set_bot_json && ql_restart
else
case ${bot} in
0) echo "已为您跳过 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
fi