Skip to content

xsephiroth/dailysign-tcb

Repository files navigation

CloudBase 部署签到脚本

通过 CloudBase 运行签到脚本script

配置 Cookies

  • 参考.env.example 配置 COOKIES 并重命名为.env
  • COOKIES 获取方法参考 scripts 中的相关描述

部署

注意更新 cloudbaserc.json 中的 envId

tcb

部署 Triggers

配置 cloudbaserc.json 函数中的 config 项 doc

tcb fn trigger create [functionName] [triggerName]

如何更新脚本

  • 增加导出 module.exports = ReadCookie
  • ReadCookie 方法更新为 async
  • ReadCookie 方法最后 all()修改为 await all();
  • 修改 NodeSet 为/tmp 目录
  • notify 方法允许 Node 环境 // if (!$nobyda.isNode)
  • nobyda.notify 增加 slackNotify(${title}\n${subtitle}\n${message});

About

CloudBase签到部署

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published