GithubHelp home page GithubHelp logo

exsshly / cloud189_abortion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wes-lin/cloud189checkin

0.0 0.0 0.0 611 KB

天翼云盘签到js版,不带推送(已废弃)

License: MIT License

JavaScript 100.00%

cloud189_abortion's Introduction

Cloud189Checkin

天翼网盘自动签到(随机容量) 和抽奖(三次,每次50M,共150M)获取空间

目录

GitHub Action运行

Fork此仓库

设置账号密码

新版本的git Action 需要创建environment来配合使用,创建一个名为user的环境。 创建好后编辑user环境,添加两个变量TY_USER_NAME 是你的天翼网盘账号,TY_PASSWORD 是的你密码。现已支持多账户,最多可添加5个账户,第二个账户用户名变量是TY_USER_NAME1,密码变量是TY_PASSWORD1,以此类推,最多到TY_USER_NAME4,TY_PASSWORD4。

设置推送

Server酱

为了考虑到不同客户端兼容性,采用了Server酱,只需多配置下SENDKEY 就行,Server酱的配置和sendkey的获取可参看Server酱官网

TelegramBot推送

  • TELEGRAM_BOT_TOKEN Telegram Bot Token
  • TELEGRAM_CHAT_ID Telegram 接收推送消息的会话 ID

微信群机器人推送

WxPusher推送

执行任务

  1. 点击Action,再点击I understand my workflows, go ahead and enable them
  2. 给自己仓库点个start或者修改任意文件后提交一次
  3. 每天早上10点执行任务

查看运行结果

Actions > Cloud check in action > build

本地运行

环境配置

Node.js 14+

克隆项目

git clone https://github.com/wes-lin/Cloud189Checkin.git
cd Cloud189Checkin

安装依赖

npm install

运行

​修改源码中accounts.js 中userName和password为你的天翼账号和密码,不想改动源码,也可以直接把账号密码写到你电脑的环境变量TY_USER_NAME和TY_PASSWORD

module.exports = [{
  userName: process.env.TY_USER_NAME || 'userName',
  password: process.env.TY_PASSWORD || 'password',
}, {
  userName: process.env.TY_USER_NAME1,
  password: process.env.TY_PASSWORD1,
}, {
  userName: process.env.TY_USER_NAME2,
  password: process.env.TY_PASSWORD2,
}, {
  userName: process.env.TY_USER_NAME3,
  password: process.env.TY_PASSWORD3,
}, {
  userName: process.env.TY_USER_NAME4,
  password: process.env.TY_PASSWORD4,
}];

推送

修改serverChan.js 或者添加环境变量SENDKEY

执行命令

npm start

cloud189_abortion's People

Contributors

wes-lin avatar j2rong4cn avatar exsshly avatar hugcabbage avatar jqtmviyu 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.