Files
BiliBiliToolPro/tencentScf/serverless.yml
database-mysql e519cac94e
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
Close Stale Issues / close_stale_issues (push) Has been cancelled
repo-sync / repo-sync (push) Has been cancelled
auto-deploy-tencent-scf / pre-check (push) Has been cancelled
auto-deploy-tencent-scf / deploy serverless (push) Has been cancelled
pull file
2026-02-11 23:32:56 +08:00

50 lines
1.4 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# https://github.com/serverless-components/tencent-scf/blob/master/docs/configure.md
#组件信息
component: scf
name: bilibili_tool
#组件参数配置
inputs:
name: ${name}_scf
namespace: default
enableRoleAuth: false
src: ./bin/publish/
handler: index.main_handler
runtime: CustomRuntime
region: ap-guangzhou # 函数所在区域,默认广州
description: This is a function in ${app} application.
memorySize: 128
initTimeout: 30
timeout: 86400
asyncRunEnable: true
traceEnable: true
events: # 根据自己的需要修改
- timer: # 每日任务触发器
parameters:
name: DailyTask
cronExpression: "0 30 12 * * * *"
enable: true
argument: Daily
- timer: # 天选抽奖触发器
parameters:
name: LiveLotteryTask
cronExpression: "0 0 */4 * * * *"
enable: true
argument: LiveLottery
- timer: # 自动取关
parameters:
name: UnfollowBatchedTask
cronExpression: "0 0 0 * * MON *"
enable: true
argument: UnfollowBatched
- timer: # 大会员积分
parameters:
name: VipBigPointTask
cronExpression: "0 07 01 * * * *"
enable: true
argument: VipBigPoint
environment:
variables: # 根据自己的需要修改
Ray_BiliBiliCookies__1: 123 # cookie必填