Skip to content

Commit

Permalink
Merge branch 'release/0.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed Feb 11, 2023
2 parents 5406f20 + 8d9df99 commit e3f7872
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 44 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<!--
* @Author: Ray [email protected]
* @Date: 2023-01-18 23:26:31
* @LastEditors: Ray [email protected]
* @LastEditTime: 2023-02-11 22:42:45
* @FilePath: \BiliBiliToolPro\CHANGELOG.md
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
## 0.0.1
- 重启项目
- 支持[青龙面板](https://github.com/whyour/qinglong)部署
Expand Down Expand Up @@ -79,4 +87,8 @@
- Fix( #366 #361 ),修复一些低级bug
- Feature( #359 ),兼容读取不到`$QL_DIR`的情况
## 0.4.0
- 合并PR( #381 #383 ),新增直播间挂机功能,感谢@bakapiano
- 合并PR( #381 #383 ),新增直播间挂机功能,感谢@bakapiano
## 0.4.1
- Merge PR #418 : Fix search video api's error, thx @catlair
## 0.4.2
- Merfe PRs #425 #426 #427 : enhancement docker things, thx @zclkkk
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<Authors>Ray</Authors>
<Version>0.4.0</Version>
<Version>0.4.2</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
</PropertyGroup>
</Project>
9 changes: 5 additions & 4 deletions docker/crontab
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
0 15 * * * dotnet /app/Ray.BiliBiliTool.Console.dll --runTasks=Daily >> /var/log/cron.log
0 22 * * * dotnet /app/Ray.BiliBiliTool.Console.dll --runTasks=LiveLottery >> /var/log/cron.log
7 1 * * * dotnet /app/Ray.BiliBiliTool.Console.dll --runTasks=VipBigPoint >> /var/log/cron.log
5 0 * * * dotnet /app/Ray.BiliBiliTool.Console.dll --runTasks=LiveFansMedal >> /var/log/cron.log
0 15 * * * dotnet /app/Ray.BiliBiliTool.Console.dll --runTasks=Daily >> /var/log/cron.log
0 22 * * * dotnet /app/Ray.BiliBiliTool.Console.dll --runTasks=LiveLottery >> /var/log/cron.log
0 6 1 * * dotnet /app/Ray.BiliBiliTool.Console.dll --runTasks=UnfollowBatched >> /var/log/cron.log
7 1 * * * dotnet /app/Ray.BiliBiliTool.Console.dll --runTasks=VipBigPoint >> /var/log/cron.log
5 0 * * * dotnet /app/Ray.BiliBiliTool.Console.dll --runTasks=LiveFansMedal >> /var/log/cron.log
39 changes: 3 additions & 36 deletions docker/sample/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,18 @@
version: '3.9'

services:
bilibili_tool:
image: zai7lou/bilibili_tool_pro
image: zai7lou/bilibili_tool_pro:latest
container_name: bili
# restart: always
restart: unless-stopped
tty: true
volumes:
- ./Logs:/app/Logs
- ./appsettings.json:/app/appsettings.json
- ./cookies.json:/app/cookies.json
tty: true
environment:
- ASPNETCORE_ENVIRONMENT=Production
- Ray_Security__IsSkipDailyTask=false

# 定时任务
- Ray_DailyTaskConfig__Cron=0 15 * * *
- Ray_LiveLotteryTaskConfig__Cron=0 22 * * *
- Ray_UnfollowBatchedTaskConfig__Cron=0 6 1 * *
- Ray_VipBigPointConfig__Cron=7 1 * * *
- Ray_LiveFansMedalTaskConfig__Cron=5 0 * * *

# UA:
- Ray_Security__UserAgent=
# 开始运行前随机随眠最大分钟数:
- Ray_Security__RandomSleepMaxMin=2
# 调用接口间的间隔秒数:
- Ray_Security__IntervalSecondsBetweenRequestApi=

# 目标投币数量:
- Ray_DailyTaskConfig__NumberOfCoins=
# 达到六级后是否开始白嫖:
- Ray_DailyTaskConfig__SaveCoinsWhenLv6=

# 天选抽奖指定排除关键字
- Ray_LiveLotteryTaskConfig__ExcludeAwardNames=
# 天选抽奖指定包含关键字
- Ray_LiveLotteryTaskConfig__IncludeAwardNames=

# 企业微信推送地址:
- Ray_Serilog__WriteTo__4__Args__webHookUrl=
# 钉钉:
- Ray_Serilog__WriteTo__5__Args__webHookUrl=
# PushPlus推送:
- Ray_Serilog__WriteTo__9__Args__token=
- Ray_Serilog__WriteTo__9__Args__topic=
- Ray_Serilog__WriteTo__9__Args__channel=
- Ray_Serilog__WriteTo__9__Args__webhook=
# Server酱推送scKey:
- Ray_Serilog__WriteTo__6__Args__turboScKey=
4 changes: 2 additions & 2 deletions docker/scripts/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ else
if ! [ -z "$Ray_VipBigPointConfig__Cron" ]; then
echo "$Ray_VipBigPointConfig__Cron cd /app && dotnet $CONSOLE_DLL --runTasks=VipBigPoint" >>$CRON_FILE
fi
if ! [ -z "$Ray_LiveFansMedalConfig__Cron" ]; then
echo "$Ray_LiveFansMedalConfig__Cron cd /app && dotnet $CONSOLE_DLL --runTasks=LiveFansMedal" >>$CRON_FILE
if ! [ -z "$Ray_LiveFansMedalTaskConfig__Cron " ]; then
echo "$Ray_LiveFansMedalTaskConfig__Cron cd /app && dotnet $CONSOLE_DLL --runTasks=LiveFansMedal" >>$CRON_FILE
fi
fi

Expand Down

0 comments on commit e3f7872

Please sign in to comment.