New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

lchl

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lchl

自动完成每日任务领取积分

Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
12
50%
Maintainers
1
Weekly downloads
 
Created
Source

力扣辅助

自动完成每日任务领取积分

首先拉取用户已下发的任务, 下面的任务没有的会跳过执行

  • 日常登录 1 积分

  • 阅读 3 篇题解 1 积分

  • 每日登录领取 1 积分

  • 保存一则学习笔记 3 积分

  • 阅读 3 章 LeetBook 领取 2 积分

  • 获取 2 本免费的 LeetBook 领取 3 积分

开发

环境安装

# clone project
git clone https://github.com/xjq7/lc-helper

# cd folder
cd lc-helper

# 安装 pnpm, 已安装的话就跳过
npm install pnpm -g

# 依赖安装
pnpm install

本地调试

pnpm dev <account> <password>

命令行工具调试

# 编译
pnpm tsc

# link 到全局
npm link --force

# 运行
lchl start <account> <password>

使用

目前只支持账号密码登录

命令行工具使用

# 全局安装
npm install -g lchl
# or
yarn add global lchl

# 运行
lchl start <account> <password>

# example
lchl start 16618922034 123456

定时任务执行

通过 Github Action 每天凌晨 00:10 分自动执行, 需要提前配置账号密码在 Action Secret 中

1. fork 本项目

2. 配置账号密码

创建 Github action Secret

进入你 fork 的项目, 找到 Settings - Security - Secrets - Actions

然后 New repository secret

填写一个 Name 为 ACCOUNT 的 key, Secret 为你的账号

填写一个 Name 为 PASSWORD 的 key, Secret 为你的密码

在 Action 中手动触发验证

FAQs

Package last updated on 08 Dec 2022

Related posts