GithubHelp home page GithubHelp logo

iderekli / juejin-helper Goto Github PK

View Code? Open in Web Editor NEW
238.0 238.0 1.0K 1.04 MB

稀土掘金助手:签到、抽奖、沾喜气、消除Bug、海底掘金游戏、自动化工作流。

Home Page: https://juejin.cn/post/7005379088491741215

License: Apache License 2.0

JavaScript 41.12% TypeScript 58.88%

juejin-helper's Introduction

Hi! I'm Derek

用奉献精神和爱

I'm a Frontend Developer from China.

Top projects:

  • JueJin Helper 稀土掘金助手:签到、抽奖、沾喜气、消除Bug、海底掘金游戏、自动化工作流。
  • JueJin Numpuzz 一款稀土掘金 "数字谜题" 游戏快速解题运算助手.
  • Stocks Browser Extension 股票浏览器扩展: 轻松地跟踪您的股票和市场.
  • AMapJS 高德地图加载模块.

Languages and Tools:

javascript typescript vue react nodejs chrome-extension electron

DerkLi's Github Status

juejin-helper's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

juejin-helper's Issues

问下那个消除bug

是不是每个礼拜六早上10点开始活动,瞬间结束?那就是有人用脚本刷了,作者能搞一个吗?bug数量超过1000 参加一次,其他时间收集bug

action报错但是正常签到

签到正常,但每次github都提示报错,具体报错信息如下:
Error : moveUp代码块不足 at /home/runner/work/juejin-helper/juejin-helper/workflows/node_modules/juejin-helper/build/juejin-helper.c.js:524:23 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Seagold.executeGameCommand (/home/runner/work/juejin-helper/juejin-helper/workflows/seagold.js:135:29) at async runGame (/home/runner/work/juejin-helper/juejin-helper/workflows/seagold.js:343:14) at async Seagold.run (/home/runner/work/juejin-helper/juejin-helper/workflows/seagold.js:3[76](https://github.com/chaseleaf/juejin-helper/actions/runs/3527644705/jobs/5916938232#step:4:77):28) at async run (/home/runner/work/juejin-helper/juejin-helper/workflows/seagold.js:414:5) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command . Error : Process completed with exit code 1.
image

yarn seagold:error

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "AxiosError: Request failed with status code 404".] {
code: 'ERR_UNHANDLED_REJECTION'
}
error Command failed with exit code 1.

工作流不执行

我是直接 fork的仓库, 自从游戏取消之后工作流就不自动执行了, 我看了代码触发器, 感觉也没有问题, 也没有报错异常, 手动执行的时候会成功, 你碰到这种情况吗
image

运行出错

/home/runner/work/juejin-helper/juejin-helper/node_modules/node-fetch/lib/index.js:273
return Body.Promise.reject(new FetchError(invalid json response body at ${_this2.url} reason: ${err.message}, 'invalid-json'));
^
FetchError: invalid json response body at https://juejin-game.bytedance.com/game/sea-gold/game/over?uid=xx&time=xxx reason: Unexpected token < in JSON at position 0
at /home/runner/work/juejin-helper/juejin-helper/node_modules/node-fetch/lib/index.js:273:32
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Seagold.request (/home/runner/work/juejin-helper/juejin-helper/node_modules/juejin-helper/dist/juejin-helper.cjs.js:45:37)
at async SeaGold.gameOver (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:104:26)
at async runGame (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:338:16)
at async SeaGold.run (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:361:7)
at async run (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:414:5) {
type: 'invalid-json'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.

Centos环境下报错:浏览器API异常

我当前的环境是Centos7,我参照项目文档的Juejin Workflows 掘金工作流 这一部分,配置了相关的参数。

当我在Linux上运行时,发生了一个错误:浏览器API异常。 但我在自己的windows上,以及GithubActions上运行,都没有出现这个问题。

于是我去拉取了项目的代码,找到了这行小字所在的位置。我把这段代码的try catch给注释掉了,然后再次让它运行,它抛出了这样的异常:

[root@aliyun juejin-helper-back]# yarn
yarn install v1.22.19
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.15s.
[root@aliyun juejin-helper-back]# yarn checkin
yarn run v1.22.19
$ ts-node checkin.js
/usr/juejin/juejin-helper-back/node_modules/ts-node/src/index.ts:859
    return new TSError(diagnosticText, diagnosticCodes, diagnostics);
           ^
TSError: ⨯ Unable to compile TypeScript:
checkin.js:220:5 - error TS1434: Unexpected keyword or identifier.

220     console.log("-------------------------");
        ~~~~~~~
checkin.js:220:12 - error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.

220     console.log("-------------------------");
               ~
checkin.js:220:17 - error TS1003: Identifier expected.

220     console.log("-------------------------");
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
checkin.js:222:1 - error TS1128: Declaration or statement expected.

222 }
    ~

    at createTSError (/usr/juejin/juejin-helper-back/node_modules/ts-node/src/index.ts:859:12)
    at reportTSError (/usr/juejin/juejin-helper-back/node_modules/ts-node/src/index.ts:863:19)
    at getOutput (/usr/juejin/juejin-helper-back/node_modules/ts-node/src/index.ts:1077:36)
    at Object.compile (/usr/juejin/juejin-helper-back/node_modules/ts-node/src/index.ts:1433:41)
    at Module.m._compile (/usr/juejin/juejin-helper-back/node_modules/ts-node/src/index.ts:1617:30)
    at Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
    at Object.require.extensions.<computed> [as .js] (/usr/juejin/juejin-helper-back/node_modules/ts-node/src/index.ts:1621:12)
    at Module.load (node:internal/modules/cjs/loader:1043:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  diagnosticCodes: [ 1434, 1068, 1003, 1128 ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

image

我windows上的node版本和Linux上一样,应该不是版本的问题。

我是一名Java开发者,对JS并不熟悉,希望作者能帮我看一看这个问题,非常感谢!

掘金的 cookie 变更了

我今天早上收到签到邮件,cookie 过期了。更新了cookie后报了如下的错误:
图片
对比过cookie后发现有一些字段和值的格式好像有变更,上面报错会不会是掘金修改cookie导致的?大佬什么时候有空适配一下新的cookie 呗!

报错

cookie 应该怎么设置呢? 按照正常的设置,一直通不过去,报错,说是cookie设置失败!

image
image

运行出错

image

checkin直接运行到超时了 后面手动re-run了 运行成功

是不是BBQ了。掘金开始检测了。。。多好的一个插件。

近期检测到掘友存在违规现象,违规版块为:用户中心-每日签到,具体违规现象为:“脚本签到:当日签到,但在稀土掘金双端无活跃记录”,违规次数为:4次。本次为提醒,如本周仍出现违规现象,会暂停掘友账户参与用户中心相关功能一周时间

cron !?

冒昧的问一下~就是如果想改一下定时时间要怎么改呀!?
我看cron是40 22 * * *呢!?
请问要怎么改一下呀!?

运行报错

TypeError: Cannot read properties of undefined (reading 'length')
at SeaGold.getCommands (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:180:27)
at SeaGold.executeGameCommand (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:150:29)
at runOnceGame (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:348:29)
at async run (/home/runner/work/juejin-helper/juejin-helper/scripts/seaGold.js:373:27)
这是啥子错误

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.