GithubHelp home page GithubHelp logo

Comments (6)

Curtion avatar Curtion commented on October 14, 2024 1

确实是没有实现,如果需要这个功能的话会在近一周内进行更新

from douyu-gift.

Curtion avatar Curtion commented on October 14, 2024 1

自定义赠送我手动根据房间号进行了修改,但是在mac上打包程序后报这个错误,调试半天搞不定。
我把'/config.db'修改成了'config.db'开发模式不报错了,但是打包完以后就这个错误。
大佬更新的时候能不能顺便看看这个问题。感谢
A JavaScript error occurred in the main process
Uncaught Exception:
Error: ENOENT: no such file or directory, open '/config.db'

在windows上面的路径是\\,而在mac上路径是/,所以你可以尝试修改background.ts文件的第10行和13行,我没有MAC OS的电脑,无法进行测试,不过后续我会在Linux上进行测试,但在这之前你可以自行尝试一下。

from douyu-gift.

Curtion avatar Curtion commented on October 14, 2024 1

V1.1.0增加了这个功能,但是还没有进行测试。

from douyu-gift.

vcan avatar vcan commented on October 14, 2024

自定义赠送我手动根据房间号进行了修改,但是在mac上打包程序后报这个错误,调试半天搞不定。
我把'/config.db'修改成了'config.db'开发模式不报错了,但是打包完以后就这个错误。
大佬更新的时候能不能顺便看看这个问题。感谢
A JavaScript error occurred in the main process
Uncaught Exception:
Error: ENOENT: no such file or directory, open '/config.db'

from douyu-gift.

vcan avatar vcan commented on October 14, 2024

感谢!问题解决,修改了下路径好了。
let paths = process.execPath.split('/'); paths.pop(); let db = new Datastore({ filename: path.join(paths.join('/'), '/config.db'), autoload: true });

from douyu-gift.

vcan avatar vcan commented on October 14, 2024

建议把赠送逻辑从按百分比的模式换成数字的方式,荧光棒数量都是固定的,如果每天得到25个荧光棒,有四个牌子,按比例分配会导致剩下1个的情况,会导致一直重复的请求问题。

from douyu-gift.

Related Issues (20)

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.