- 🌱 I'm currently learning ... My Blog
x3zvawq / gubot Goto Github PK
View Code? Open in Web Editor NEWA qq group robot is used to provide some jx3-related functional support
License: MIT License
A qq group robot is used to provide some jx3-related functional support
License: MIT License
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
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那里如何配置?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.