GithubHelp home page GithubHelp logo

checkin_me's Introduction

GLaDOS_Checkin

GLaDOS automatic check-in bypassing CloudFlare using github action

功能描述

  1. 每日自动进行签到(本项目可通过CloudFlare反爬机制)
  2. 支持多用户签到,多个Cookie之间采用&&手动分割
  3. 【可选】支持将签到消息推送至Server酱,Pushplus,企业微信,Bark
  4. 【可选】支持自动同步上游仓库代码,自动获取最新版本。
  5. 本项目可触发Github Notifications,出现Cookie过期/签到失败等可自动发送Email
  6. 本项目包含Github Actions keep alive模块,可自动激活Github Actions

使用方法

1. 添加 Cookie 至 Secrets

  • 登陆GLaDOS后,F12打开开发者工具。
  • 刷新网页,并在浏览器中提取复制Cookie项(本程序可处理Cookie:前缀,使用者复制该项时是否具有前缀均可)

  • 在项目页面,依次点击Settings-->Secrets-->Actions-->New repository secret

  • 建立名为GLADOS_COOKIE的 secret,值为复制的Cookie内容,最后点击Add secret
  • secret名字必须为GLADOS_COOKIE,大小写敏感
  • 支持多用户签到,多个Cookie之间采用&&手动分割完成后填入GLADOS_COOKIE即可
  • 为保护隐私,不在日志中输出任何Id信息,请自行分辨账号顺序

2. 启用 Actions

  • 在项目页面,依次点击Actions-->glados-->Run workflow-->Run workflow以激活Actions

  • Workflow开启后,每日0时30分自动执行。

3. 消息推送 (可选)

本项目支持将签到消息推送至第三方平台,用户选择其希望推送的平台并配置相关token即可。若用户不需要将消息推送至某个(些)平台,则无需对作作出任何配置。

3.1 Pushplus

将消息推送至Pushplus需手动配置token,并在本仓库创建名为PUSHPLUS_TOKEN的secret,将token作为PUSHPLUS_TOKEN的值。

3.2 Server酱

将消息推送至Server酱需手动配置SendKey,并在本仓库创建名为SERVERCHAN_SENDKEY的secret,将SendKey作为SERVERCHAN_SENDKEY的值。

3.3 企业微信

将消息推送至企业微信需手动配置群聊机器人Webhook地址,并在本仓库创建名为WECOM_WEBHOOK的secret,将Webhook地址作为WECOM_WEBHOOK的值。

  • 此处请输入完整的Webhook地址,包含https://qyapi.weixin.qq.com/cgi-bin/webhook/send?前缀,无需手动去除,切勿仅输入key值。
  • 受制于第三方开发者ip访问限制,本项目暂不支持在Github Actions环境中将消息推送至企业微信应用。

3.4 Bark

将消息推送至Bark需手动配置DeviceKey,并在本仓库创建名为BARK_DEVICEKEY的secret,将DeviceKey作为BARK_DEVICEKEY的值。

4. 自动同步 (可选)

本项目提供了一种用于自动和上游仓库进行同步的工作流。该工作流开启后,将会自动从上游仓库拉取代码并覆盖掉自行修改的内容。该工作流有助于从源仓库获取最近更新,但不利于对本项目进行的二次开发。

工作流默认不触发,开启后每周一执行一次,若需关闭/开启可参考禁用和启用工作流程

配置步骤如下:

  1. 首先生成Personal access token用于获得对仓库的访问权限。

  • Note项填写token的名字,用户自由命名即可
  • Expiration项填写token过期时长,建议填写为No Expiration
  • Select scopes项依据图示选择repo项全部内容和workflow
  1. 滑动到页面最下方点击Generate token获得token,并手动复制token值。该token值仅显示一次,关闭页面后无法找回。

  1. 在本仓库创建名为PAT的secret,将上一步生成的token作为PAT的值。

  2. 手动启动触发工作流以开启自动同步功能。

鸣谢

  • 感谢yaoysyao支持将消息推送至Pushplus的相关内容
  • 感谢AstbReal支持将消息推送至Server酱和企业微信的相关内容及GLaDOS用户status的解析策略

checkin_me's People

Contributors

zlfengshare avatar

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.