From 307207dddd78442b4adbfda0405a32f1c59da860 Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Sun, 30 May 2021 20:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbot=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample/config.sample.sh | 8 ++++---- shell/bot.sh | 10 +--------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/sample/config.sample.sh b/sample/config.sample.sh index b10ed4a0..362714d5 100644 --- a/sample/config.sample.sh +++ b/sample/config.sample.sh @@ -1,6 +1,6 @@ -## Version: v2.0.0-05242340 -## Date: 2021-05-24 -## Update Content: 增加pip自定义源\n显示定时任务总条数\n修复同一个作者多仓库定时任务异常删除\n其他bug修复 +## Version: v2.0.0-05302045 +## Date: 2021-05-30 +## Update Content: 增加ql bot命令所需文件提示 ## 上面版本号中,如果第2位数字有变化,那么代表增加了新的参数,如果只有第3位数字有变化,仅代表更新了注释,没有增加新的参数,可更新可不更新 @@ -33,7 +33,7 @@ AutoHelpOther="" ## 填 2 使用“随机顺序助力模板”,本套脚本内账号间随机顺序助力,每次生成的顺序都不一致。 HelpType="" -## 是否自动启动bot,默认不启动,设置为true时自动启动 +## 是否自动启动bot,默认不启动,设置为true时自动启动,目前需要自行克隆bot仓库所需代码,存到ql目录下,文件夹命名为dockerbot AutoStartBot="" ## 安装bot依赖时指定pip源,默认使用清华源,如不需要源,设置此参数为空 diff --git a/shell/bot.sh b/shell/bot.sh index 3f40121c..e047721f 100644 --- a/shell/bot.sh +++ b/shell/bot.sh @@ -3,21 +3,13 @@ ## 导入通用变量与函数 dir_shell=/ql/shell . $dir_shell/share.sh -repo_path="${dir_repo}/SuMaiKaDe_jddockerbot" -url="https://ghproxy.com/https://github.com/SuMaiKaDe/jddockerbot.git" +repo_path="${dir_repo}/dockerbot" echo -e "\n1、安装bot依赖...\n" apk --no-cache add -f zlib-dev gcc jpeg-dev python3-dev musl-dev freetype-dev echo -e "\nbot依赖安装成功...\n" echo -e "2、下载bot所需文件...\n" -if [ -d ${repo_path}/.git ]; then - reset_romote_url ${repo_path} ${url} - git_pull_scripts ${repo_path} -else - git_clone_scripts ${url} ${repo_path} "master" -fi - cp -rf "$repo_path/jbot" $dir_root if [[ ! -f "$dir_root/config/bot.json" ]]; then cp -f "$repo_path/config/bot.json" "$dir_root/config"