Skip to content
Open

s #5

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
57bc7a6
Merge pull request #1 from lunnlew/main
GitHub-Xzhi Jan 26, 2021
46f2d63
Merge pull request #2 from lunnlew/main
GitHub-Xzhi Jan 29, 2021
b6c8ed1
Merge pull request #3 from lunnlew/main
GitHub-Xzhi Feb 1, 2021
c6b8850
fixed dailyYYY.js
DJ-clamp Feb 7, 2021
8cae609
Update dailyYYY.js
DJ-clamp Feb 7, 2021
2233d62
Update dailyYYY.js
DJ-clamp Feb 7, 2021
27d5d45
✔hidden console.log for some reason.
DJ-clamp Feb 7, 2021
c423265
🚧 creating a new game event
DJ-clamp Feb 8, 2021
c4f370c
created bcow game event
DJ-clamp Feb 8, 2021
e435de7
✔hidden console.log function for some reasons.
DJ-clamp Feb 8, 2021
de2006f
Update myPhone.js
DJ-clamp Feb 8, 2021
53a1863
updated bcow
DJ-clamp Feb 8, 2021
243203d
🐍 fixed bug at bcow.js
DJ-clamp Feb 8, 2021
dbfd496
🐍 fixed bug at bcow.js
DJ-clamp Feb 8, 2021
4945b83
Update bcow.js
DJ-clamp Feb 8, 2021
78b898d
format file
DJ-clamp Feb 8, 2021
651b710
add gameUtils.js file
DJ-clamp Feb 8, 2021
44a8e64
Update PAES.js
DJ-clamp Feb 8, 2021
e70455f
Update myPhone.js
cooip-jm Feb 8, 2021
40ef9f3
Update dailyYYY.js
DJ-clamp Feb 8, 2021
218d6f3
Merge pull request #16 from cooip-jm/patch-1
DJ-clamp Feb 8, 2021
53c6d3c
🚧 fixing YYQ
DJ-clamp Feb 8, 2021
f384f33
🚧 updating some files.
DJ-clamp Feb 8, 2021
f4e5def
🐍 fixed YYQ
DJ-clamp Feb 9, 2021
54c527d
🐍 fixed LKMH
DJ-clamp Feb 9, 2021
8104fe4
fixed some bugs
DJ-clamp Feb 9, 2021
984bf01
fixed bcow
DJ-clamp Feb 9, 2021
9c8158a
🐍 fixed bugs
DJ-clamp Feb 9, 2021
2a1ae8f
🚂 delete unnecessary code at LKMH
DJ-clamp Feb 9, 2021
ddae99a
🚂 delete unnecessary code at LKMH
DJ-clamp Feb 9, 2021
78c5eb7
🏳‍🌈 add some comments
DJ-clamp Feb 9, 2021
ec7139f
Update dailyVideoScratchcard.js
DJ-clamp Feb 9, 2021
80fb544
❌ deprecated dailyTurntablePage
DJ-clamp Feb 9, 2021
b34e0b7
🚧 updating task
DJ-clamp Feb 9, 2021
212b066
🏳‍🌈 updated UA collections
DJ-clamp Feb 9, 2021
c0980a2
🏳‍🌈 updated UA collections
DJ-clamp Feb 9, 2021
b111be1
🐍 fixed time bug
DJ-clamp Feb 9, 2021
86d445b
Update .gitignore
DJ-clamp Feb 9, 2021
c7ce812
🏳‍🌈add emoji icon at schedule
DJ-clamp Feb 9, 2021
efc18ec
Update init.js
cooip-jm Feb 9, 2021
97ed3d8
updating task
DJ-clamp Feb 9, 2021
a04bae5
Merge pull request #19 from cooip-jm/patch-2
DJ-clamp Feb 9, 2021
22dda00
updated some files
DJ-clamp Feb 10, 2021
42291f5
🚧 updating task ingots
DJ-clamp Feb 10, 2021
abc642f
updating
DJ-clamp Feb 10, 2021
a5df7da
Update ingotsPage.js
DJ-clamp Feb 10, 2021
2901ea4
Update ingotsPage.js
DJ-clamp Feb 10, 2021
0f89477
Update ingotsPage.js
DJ-clamp Feb 10, 2021
80e7346
Update ingotsPage.js
DJ-clamp Feb 10, 2021
baa97ff
Update ingotsPage.js
DJ-clamp Feb 10, 2021
bd82553
🐍 fixed bug at ingots
DJ-clamp Feb 10, 2021
1ab1ef9
🚧 updating task ingots
DJ-clamp Feb 10, 2021
676daad
🚧 updating task ingots
DJ-clamp Feb 10, 2021
7166951
🚧 updating task ingots
DJ-clamp Feb 10, 2021
6b6cf3b
🏳‍🌈 created three squirrels task
DJ-clamp Feb 10, 2021
200b0ea
🐍 fixed jflottery
DJ-clamp Feb 10, 2021
4095344
Update README.md
DJ-clamp Feb 10, 2021
b49df89
🐍 updated dailyVideoScratchcard task
DJ-clamp Feb 11, 2021
5e1ab7c
✔ updated event file
DJ-clamp Feb 11, 2021
c1594e5
fixed bugs
DJ-clamp Feb 11, 2021
f348624
🚧 updating ingots
DJ-clamp Feb 11, 2021
2d15783
🚧 updating files
DJ-clamp Feb 11, 2021
4266813
🐍 updated UA
DJ-clamp Feb 11, 2021
92a0cb1
🐍 updating task
DJ-clamp Feb 12, 2021
0f0f14d
🐍 updating task
DJ-clamp Feb 12, 2021
22f89cb
Update ingotsPage.js
DJ-clamp Feb 12, 2021
de8c736
🚧 updating task
DJ-clamp Feb 12, 2021
8cdd8ad
Update myPhone.js
cooip-jm Feb 12, 2021
a3f33e8
🏳‍🌈 updated task ingots
DJ-clamp Feb 12, 2021
5043d64
🏳‍🌈 updated task ingots
DJ-clamp Feb 12, 2021
7a440c5
🏳‍🌈 updated task ingots
DJ-clamp Feb 12, 2021
0f7cca7
Update dailyGrabdollPage.js
cooip-jm Feb 13, 2021
4a1bb04
Update dailyVideoBook.js
cooip-jm Feb 13, 2021
b48b1a3
Update dailyVideoScratchcard.js
cooip-jm Feb 13, 2021
efa0733
Update dailyYYQ.js
cooip-jm Feb 13, 2021
b83fcb4
Update dailyYYY.js
cooip-jm Feb 13, 2021
c502e6d
Update dailylottery.js
cooip-jm Feb 13, 2021
d308a92
Update jflottery.js
cooip-jm Feb 13, 2021
9190edd
Update producGame.js
cooip-jm Feb 13, 2021
ca7de1d
🏳‍🌈 updated task video free goods
DJ-clamp Feb 13, 2021
825032e
Merge pull request #31 from cooip-jm/patch-12
DJ-clamp Feb 13, 2021
095662a
Merge pull request #30 from cooip-jm/patch-11
DJ-clamp Feb 13, 2021
28fd388
Merge pull request #29 from cooip-jm/patch-10
DJ-clamp Feb 13, 2021
656f1b7
Merge pull request #28 from cooip-jm/patch-9
DJ-clamp Feb 13, 2021
3477b8f
Merge pull request #27 from cooip-jm/patch-8
DJ-clamp Feb 13, 2021
b9a3341
Merge pull request #26 from cooip-jm/patch-7
DJ-clamp Feb 13, 2021
8729819
Merge pull request #24 from cooip-jm/patch-5
DJ-clamp Feb 13, 2021
8965ef5
Merge pull request #23 from cooip-jm/patch-4
DJ-clamp Feb 13, 2021
7aa3266
Merge pull request #22 from cooip-jm/patch-3
DJ-clamp Feb 13, 2021
d659c4d
updating files
DJ-clamp Feb 14, 2021
b49b042
🏳‍🌈 updated task bawangCard
DJ-clamp Feb 14, 2021
f6418d3
🐍 fixed bugs
DJ-clamp Feb 14, 2021
486d5be
Create book5video.js
cooip-jm Feb 14, 2021
52a5e10
Update book5video.js
cooip-jm Feb 15, 2021
1b85902
🏳‍🌈 updated tasks
DJ-clamp Feb 16, 2021
16d027a
🐍 fixed bugs
DJ-clamp Feb 16, 2021
9184844
Update dailyFingerqd.js
DJ-clamp Feb 16, 2021
9f14732
Update unicom.js
cooip-jm Feb 16, 2021
7d3ccd7
Merge pull request #36 from cooip-jm/patch-15
DJ-clamp Feb 17, 2021
e574085
🐍 fixed bugs
DJ-clamp Feb 17, 2021
34666b3
🐍 fixed bugs
DJ-clamp Feb 17, 2021
0a8d3db
Create dailyFingerqd2.js
cooip-jm Feb 17, 2021
fce910b
Update unicom.js
cooip-jm Feb 17, 2021
419a2ac
Merge pull request #37 from cooip-jm/patch-16
DJ-clamp Feb 17, 2021
2f30e5c
Merge pull request #38 from cooip-jm/patch-17
DJ-clamp Feb 17, 2021
2809f7f
Update unicom.js
DJ-clamp Feb 17, 2021
ac1046f
Update dailyFingerqd2.js
DJ-clamp Feb 17, 2021
deabaac
Create taocan.js
cooip-jm Feb 18, 2021
3dbc0d0
Update unicom.js
cooip-jm Feb 18, 2021
792fb2f
Merge pull request #39 from cooip-jm/patch-18
DJ-clamp Feb 18, 2021
69b7f74
Merge pull request #40 from cooip-jm/patch-19
DJ-clamp Feb 18, 2021
7bfed10
🐍 fixed bug
DJ-clamp Feb 18, 2021
b168837
Merge branch 'dev' of https://github.com/DJ-clamp/BaseSation into dev
DJ-clamp Feb 18, 2021
92b58aa
Update scheduler.js
DJ-clamp Feb 18, 2021
1a3db87
Update unicom.js
DJ-clamp Feb 18, 2021
656758c
Update dailyBaWangcard.js
DJ-clamp Feb 18, 2021
206316e
Update unicom.js
DJ-clamp Feb 18, 2021
c12774c
🐍 fixed bug
DJ-clamp Feb 19, 2021
855a6cd
🐍 fixed bug
DJ-clamp Feb 19, 2021
85b0c11
Update scheduler.js
DJ-clamp Feb 19, 2021
4986a14
updating file
DJ-clamp Feb 19, 2021
4b22992
Update freeDownFloorAd.js
DJ-clamp Feb 19, 2021
76f9ad2
Merge branch 'dev' of https://github.com/DJ-clamp/BaseSation into dev
DJ-clamp Feb 19, 2021
c095066
🏳‍🌈 updated task
DJ-clamp Feb 20, 2021
f561641
updating file
DJ-clamp Feb 20, 2021
16c2a6d
🐍 fixed bug
DJ-clamp Feb 20, 2021
0169668
🐍 fixed bug
DJ-clamp Feb 20, 2021
d51f38b
updated depends
DJ-clamp Feb 20, 2021
6ca9956
updated tasks and envs feature
DJ-clamp Feb 20, 2021
bebfc9f
updated contents on console log
DJ-clamp Feb 20, 2021
9f7085a
🏳‍🌈 updated task feature
DJ-clamp Feb 21, 2021
47d2422
🚧 updated tasks
DJ-clamp Feb 21, 2021
ca460d7
Update scheduler.js
DJ-clamp Feb 21, 2021
625d537
Update fetchCoins.js
DJ-clamp Feb 21, 2021
d0b8672
updated task feature
DJ-clamp Feb 22, 2021
b7d69bd
Create jflotteryad.js
cooip-jm Feb 22, 2021
5056b53
Update unicom.js
cooip-jm Feb 22, 2021
3d4374e
Update dailyTurncards.js
DJ-clamp Feb 22, 2021
7bf6e02
Update dailyTurncards.js
DJ-clamp Feb 22, 2021
85183ff
Update dailyTurncards.js
DJ-clamp Feb 22, 2021
f0e4882
Update unicom.js
DJ-clamp Feb 22, 2021
f6a7cac
updated
DJ-clamp Feb 22, 2021
f3036bc
Merge pull request #47 from cooip-jm/patch-2
DJ-clamp Feb 22, 2021
09313fd
Merge pull request #48 from cooip-jm/patch-3
DJ-clamp Feb 22, 2021
cbf0559
Update dailyTurncards.js
DJ-clamp Feb 22, 2021
ddd4b82
Update dailyTurncards.js
DJ-clamp Feb 22, 2021
0bacde0
修复config/.env指向执行命令目录而非程序所在文件夹的BUG
meilfy Feb 22, 2021
62151e3
Merge pull request #50 from meilfy/azmodan
DJ-clamp Feb 23, 2021
7351708
Update README.md
GitHub-Xzhi Mar 4, 2021
9ca8a8c
Merge branch 'main' into azmodan
GitHub-Xzhi Mar 4, 2021
c1e510c
Merge pull request #9 from fanruitian/azmodan
GitHub-Xzhi Mar 4, 2021
14995b4
Update README.md
GitHub-Xzhi Mar 4, 2021
abffe71
Update package.json
GitHub-Xzhi Mar 4, 2021
df64ff5
Update package-lock.json
GitHub-Xzhi Mar 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# http://editorconfig.org

root = true

[*]

charset = utf-8

indent_style = space

indent_size = 2

end_of_line = lf

insert_final_newline = true

trim_trailing_whitespace = true



[*.md]

insert_final_newline = false

trim_trailing_whitespace = false
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
env: {
node: true,
commonjs: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:prettier/recommended"],
parserOptions: {
es6: true,
sourceType: "module",
ecmaVersion: 12,
},
// parser: "@babel/eslint-parser",
rules: {},
};
115 changes: 0 additions & 115 deletions .github/workflows/daily-task.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ yarn.lock

jspm_packages

.serverless
.serverless
demo.js
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"printWidth": 80,
"semi": true,
"singleQuote": false
}
21 changes: 10 additions & 11 deletions AutoSignMachine.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
const yargs = require('yargs/yargs')
const yargs = require("yargs/yargs");
// const { hideBin } = require('yargs/helpers')
/**
* 命令执行入口
*/
var AutoSignMachine_Run = (argv) => {
yargs((argv || process.argv).slice(2))
.commandDir('commands')
.commandDir("commands")
.demand(1)
.config('config', 'JSON配置文件路径')
.config("config", "JSON配置文件路径")
.help()
.alias('h', 'help')
.locale('en')
.showHelpOnFail(true, '使用--help查看有效选项')
.epilog('copyright 2020 LunnLew')
.argv;
}
.alias("h", "help")
.locale("en")
.showHelpOnFail(true, "使用--help查看有效选项")
.epilog("copyright 2020 LunnLew").argv;
};
module.exports = {
run: AutoSignMachine_Run
}
run: AutoSignMachine_Run,
};
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# AutoSignMachine

> Due to a third-party risk dispute, this script stopped sharing
>
> 由于第三方风险争议,此脚本停止分享

> 由于其他原因,该项目暂时停止维护
# AutoSignMachine

**一个自动执行任务的工具,通过它可以实现账号自动签到,自动领取权益等功能,帮助我们轻松升级。**

## bilibili签到任务
Expand Down Expand Up @@ -172,4 +174,5 @@ docker run \
```

### GitHub Actions 运行问题
暂未处理GitHub Actions支持
暂未处理GitHub Actions支持

92 changes: 48 additions & 44 deletions commands/52pojie.js
Original file line number Diff line number Diff line change
@@ -1,68 +1,72 @@
const path = require("path");
const { scheduler } = require("../utils/scheduler");

const path = require('path')
const { scheduler } = require('../utils/scheduler')
exports.command = "52pojie";

exports.command = '52pojie'

exports.describe = '52pojie签到任务'
exports.describe = "52pojie签到任务";

exports.builder = function (yargs) {
return yargs
.option('htVD_2132_auth', {
describe: 'cookie项htVD_2132_auth的值',
type: 'string'
.option("htVD_2132_auth", {
describe: "cookie项htVD_2132_auth的值",
type: "string",
})
.option('htVD_2132_saltkey', {
describe: 'cookie项htVD_2132_saltkey的值',
type: 'string'
.option("htVD_2132_saltkey", {
describe: "cookie项htVD_2132_saltkey的值",
type: "string",
})
.help()
.showHelpOnFail(true, '使用--help查看有效选项')
.epilog('copyright 2020 LunnLew');
}
.showHelpOnFail(true, "使用--help查看有效选项")
.epilog("copyright 2020 LunnLew");
};

exports.handler = async function (argv) {
var command = argv._[0]
var accounts = []
if ('accountSn' in argv && argv.accountSn) {
let accountSns = argv.accountSn.split(',')
var command = argv._[0];
var accounts = [];
if ("accountSn" in argv && argv.accountSn) {
let accountSns = argv.accountSn.split(",");
for (let sn of accountSns) {
if (('htVD_2132_auth-' + sn) in argv) {
if ("htVD_2132_auth-" + sn in argv) {
let account = {
htVD_2132_auth: argv['htVD_2132_auth-' + sn],
htVD_2132_saltkey: argv['htVD_2132_saltkey-' + sn],
tasks: argv['tasks-' + sn]
}
if (('tryrun-' + sn) in argv) {
account['tryrun'] = true
htVD_2132_auth: argv["htVD_2132_auth-" + sn],
htVD_2132_saltkey: argv["htVD_2132_saltkey-" + sn],
tasks: argv["tasks-" + sn],
};
if ("tryrun-" + sn in argv) {
account["tryrun"] = true;
}
accounts.push(account)
accounts.push(account);
}
}
} else {
accounts.push({
...argv
})
...argv,
});
}
console.log('总账户数', accounts.length)
console.log("总账户数", accounts.length);
for (let account of accounts) {
await require(path.join(__dirname, 'tasks', command, command)).start({
cookies: {
htVD_2132_auth: account.htVD_2132_auth,
htVD_2132_saltkey: account.htVD_2132_saltkey
},
options: {}
}).catch(err => console.log("52pojie签到任务:", err.message))
await require(path.join(__dirname, "tasks", command, command))
.start({
cookies: {
htVD_2132_auth: account.htVD_2132_auth,
htVD_2132_saltkey: account.htVD_2132_saltkey,
},
options: {},
})
.catch((err) => console.log("52pojie签到任务:", err.message));
let hasTasks = await scheduler.hasWillTask(command, {
tryrun: 'tryrun' in argv,
taskKey: account.htVD_2132_auth
})
tryrun: "tryrun" in argv,
taskKey: account.htVD_2132_auth,
});
if (hasTasks) {
scheduler.execTask(command, account.tasks).catch(err => console.log("52pojie签到任务:", err.message)).finally(() => {
console.log('当前任务执行完毕!')
})
scheduler
.execTask(command, account.tasks)
.catch((err) => console.log("52pojie签到任务:", err.message))
.finally(() => {
console.log("当前任务执行完毕!");
});
} else {
console.log('暂无可执行任务!')
console.log("暂无可执行任务!");
}
}
}
};
Loading