Code Monkey home page Code Monkey logo

Comments (2)

KudouRan avatar KudouRan commented on May 22, 2024 2

配置有错,环境变量 Ray_DailyTaskConfig__DayOfReceiveVipPrivilege 是重复的。

from bilibilitoolpro.

mataxiangyun avatar mataxiangyun commented on May 22, 2024

`# https://github.com/serverless-components/tencent-scf/blob/master/docs/configure.md

#组件信息
component: scf
name: bilibili_tool

#组件参数配置
inputs:
name: ${name}_scf
enableRoleAuth: false
src: ./bin/publish/
handler: index.main_handler
runtime: CustomRuntime
region: ap-guangzhou # 函数所在区域,默认广州ap-hongkong-2
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
environment:
variables: # 根据自己的需要修改
Ray_BiliBiliCookies__1: @@@@@@@
Ray_Security__RandomSleepMaxMin: 30
Security__IntervalSecondsBetweenRequestApi: 15
Ray_Security__IntervalMethodTypes:
Ray_Security__UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36
Ray_DailyTaskConfig__NumberOfCoins: 5
Ray_DailyTaskConfig__SelectLike: true
Ray_DailyTaskConfig__DayOfAutoCharge: -1
Ray_DailyTaskConfig__AutoChargeUpId: -1
Ray_DailyTaskConfig__DayOfReceiveVipPrivilege: 1
Ray_Serilog__WriteTo__3__Args__chatId: @@@@@@@
Ray_Serilog__WriteTo__3__Args__botToken: @@@@@@@
Ray_UnfollowBatchedTaskConfig__Count: 10
Ray_DailyTaskConfig__DayOfReceiveVipPrivilege: 19 # 会员权益日期
Ray_DailyTaskConfig__SupportUpIds: -1
Ray_UnfollowBatchedTaskConfig__Count: 10

`

from bilibilitoolpro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.