Comments (15)
还有这个问题
TypeError: Cannot read properties of undefined (reading 'plugins')
at OneBot.start (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/@zhinjs[email protected]/node_modules/@zhinjs/plugin-onebot/lib/index.js:582:35)
at Plugin.install (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/@zhinjs[email protected]/node_modules/@zhinjs/plugin-onebot/lib/index.js:644:20)
at Plugin.mount (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/lib/plugin.js:27:45)
at installPlugin (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/lib/context.js:125:24)
at Proxy.plugin (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/lib/context.js:136:9)
at /Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/lib/zhin.js:422:22
at Array.forEach ()
at Proxy.start (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/lib/zhin.js:420:41)
at Object. (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/worker.js:12:6)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
from zhin.
cli 生成的配置文件
port: 8086
adapters:
icqq:
bots:
- uin: xxx
password: -
platform: 1
master: xxx
data_dir: data
self_url: localhost
data_dir: data
plugin_dir: plugins
plugins:
watcher: /Users/linonetwo/Desktop/repo/qq-bot
log_level: info
services: {}
delay:
prompt: 60000
logConfig:
appenders:
consoleOut:
type: console
saveFile:
type: file
filename: /Users/linonetwo/Desktop/repo/qq-bot/logs.log
categories:
default:
appenders:
- consoleOut
- saveFile
level: info
能不把密码放在这里吗?想放在一个 。env 文件里
from zhin.
没看到在哪里配置启用的插件列表,不想用这个插件了发现没地方关,packagejson 里去掉之后就说找不到了
[2023-02-26T23:42:34.460] [WARN] [zhin] - Error: Cannot find module '@zhinjs/plugin-database'
Require stack:
- /Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/@zhinjs[email protected]/node_modules/@zhinjs/plugin-qa/lib/index.js
from zhin.
一开始不应该用 cli 安装插件,不然配置里不会列出来
from zhin.
删掉 device。json 后,修改
platform: 3
就可以登录了
from zhin.
填了密码后每次还是要扫码
from zhin.
填了密码后每次还是要扫码
将配置文件中的uin改为self_id,这个是cli生成的配置文件有问题(@zhinjs/cli最新版已经改了)
from zhin.
没看到在哪里配置启用的插件列表,不想用这个插件了发现没地方关,packagejson 里去掉之后就说找不到了
[2023-02-26T23:42:34.460] [WARN] [zhin] - Error: Cannot find module '@zhinjs/plugin-database' Require stack:
- /Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/@zhinjs[email protected]/node_modules/@zhinjs/plugin-qa/lib/index.js
这是因为qa以来的数据库插件没正常安装,所以启用qa失败了,建议如果不需要,可以先卸载@zhinjs/plugin-qa
from zhin.
还有这个问题
TypeError: Cannot read properties of undefined (reading 'plugins') at OneBot.start (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/@zhinjs[email protected]/node_modules/@zhinjs/plugin-onebot/lib/index.js:582:35) at Plugin.install (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/@zhinjs[email protected]/node_modules/@zhinjs/plugin-onebot/lib/index.js:644:20) at Plugin.mount (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/lib/plugin.js:27:45) at installPlugin (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/lib/context.js:125:24) at Proxy.plugin (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/lib/context.js:136:9) at /Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/lib/zhin.js:422:22 at Array.forEach () at Proxy.start (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/lib/zhin.js:420:41) at Object. (/Users/linonetwo/Desktop/repo/qq-bot/node_modules/.pnpm/[email protected]/node_modules/zhin/worker.js:12:6) at Module._compile (node:internal/modules/cjs/loader:1159:14)
@zhinjs/plugin-onebot 已弃用
from zhin.
可以了,之前那些插件都是 cli 装的,后来我重新 init 了一次,没选它们了
from zhin.
还是每次都要滑块
重新创建后,滑块完成后输入 token 无响应
[2023-03-03T14:49:22.455] [MARK] [aPad:x] - 114.x:8080 connected
[2023-03-03T14:49:22.573] [MARK] [aPad:x] - 收到滑动验证码,请访问以下地址完成滑动,并从网络响应中取出ticket输入:https://ssl.captcha.qq.com/template/wireless_mqq_captcha.html?xxx&clientype=1&apptype=2
t03mMRojjfj00XfoaG9sJW8SQGC0ezLPT1zvrSr4BNY0MPC8IDzOwmELiiIU
t03mMRojjfj00XfoaG9sJW8SQGC0ezLPT1zvrSr4BNY0MPC8IDzOw
from zhin.
上述已修复,最新报错为
[2023-03-13T17:13:53.009] [WARN] [icqq] - token失效: [禁止登录]登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。(错误码:45)
[2023-03-13T17:13:53.010] [ERROR] [icqq] - [禁止登录]登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。
(Platform 为 1)
from zhin.
需要一个这种情况下清空 token 的对话选项
from zhin.
[2023-03-13T17:16:27.013] [WARN] [icqq] - token失效: [禁止登录]请使用手Q扫描二维码或短信登录。(错误码:238)
[2023-03-13T17:16:27.014] [ERROR] [icqq] - [禁止登录]请使用手Q扫描二维码或短信登录。
Platform 为 3 时是这个报错
from zhin.
改为 platform: 4 ,并使用密保手机发送短信方式登录后解决。
from zhin.
Related Issues (20)
- 群没了 HOT 3
- 使用 @zhinjs/plugin-console、@zhinjs/plugin-cron、@zhinjs/plugin-task 报错 HOT 1
- 202305 token失效: [禁止登录]登录失败 HOT 2
- issue test
- 如何在掉线时提示群友 HOT 2
- 卡在加载,没进入登录步骤 HOT 1
- type text is not defined HOT 8
- ts 插件没有自动重新载入 HOT 4
- token 需要输入两次,而且无法登录 HOT 1
- sign_api_addr 未生效 HOT 1
- 报错hild process exited with code 254 HOT 1
- sugar 的正则匹配问题 HOT 1
- '[禁止登录]登录失败,请前往QQ官网im.qq.com下载最新版QQ后重试,或通过问题反馈与我们联系。' HOT 1
- 关于一种我自己用的、仿Spring开发范式的插件
- 沙盒环境? HOT 12
- [icqq] - 没收到机器人的消息 只能单独发送转发节点 HOT 7
- 【插件开发】Javascript-setup 模式报错 HOT 3
- [求助] win11 下安装出现的包括但不限于命令缺失的问题 HOT 2
- [求助]根据文档安装过程中出现命令无法找到等报错 HOT 1
- 无法找到package.json HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zhin.