Giter Club home page Giter Club logo

gubot's Issues

安装失败

monent 这个包名是不是写错了? 应该是moment吧

部署报错

/home/ubuntu/gubot/src/service/bot.js:208
            let [args, command] = await this.parseArgs(data) ?? [];
                                                              ^


SyntaxError: Unexpected token ?
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/ubuntu/gubot/app.js:3:13)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

尝试删掉,再报错

[2021-07-09 14:43:09][SUCCESS] Redis: init successed
[2021-07-09 14:43:09][SUCCESS] Sequelize: init successed
[2021-07-09 14:43:09][SUCCESS] ImageGenerator: init successed
(node:47874) UnhandledPromiseRejectionWarning: /home/ubuntu/gubot/src/service/cqhttp.js:4
    wsApi;
         ^

SyntaxError: Unexpected token ;
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Bot.initCqhttps (/home/ubuntu/gubot/src/service/bot.js:83:24)
    at /home/ubuntu/gubot/app.js:10:15
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:47874) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). (rejection id: 2)
(node:47874) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
ubuntu@VM-8-13-ubuntu:~/gubot$ vim src/service/cqhttp.js

帮助或者/help错误

TypeError: Cannot read property 'newPage' of undefined
at Function.generateFromHtmlFile (/root/goubot/src/service/image.js:19:44)
at Function.generateFromHtml (/root/goubot/src/service/image.js:59:33)
at async Function.generateFromMarkdown (/root/goubot/src/service/image.js:96:16)
at async Function.generateFromMarkdownFile (/root/goubot/src/service/image.js:86:16)
at async HelpHandler.handle (/root/goubot/src/commands/help.js:11:21)
at async Bot.handleCommand (/root/goubot/src/service/bot.js:25:24)
at async Bot.handleMessage (/root/goubot/src/service/bot.js:122:24)
at async WebSocket. (/root/goubot/src/main.js:121:26)

求教

大佬请问env.json那里如何配置?

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.