Giter Site home page Giter Site logo

miao-yunzai's Introduction

Miao-Yunzai v3

基于乐神版云崽v3.0 改造

需要同时安装miao-plugin ,且后续的一些底层改造可能会改变数据结构,无法直接迁回原版Yunzai,请根据自己需求情况慎重安装

使用icqq 登录,防止oicq可能出现的低版本问题


与原版Yunzai-Bot的差异:

【注意】: 由于是独立新的仓库,【只建议新部署/部署后迁移】,不建议原Bot直接换源强更

  • 一些新特性: Miao-Yunzai会逐步重构,增加新特性与功能,可能会有功能与形态上的变化。如期望功能更加稳定可使用此仓库Yunzai-V3
  • 移除了签到功能: 与原Yunzai独立的仓库,去除了较为敏感的签到功能,以尝试恢复Github 环境。附加Gitee
  • 默认启用喵版的功能: 【#角色】【#深渊】【#帮助】等功能默认启用喵版,原版的逻辑会屏蔽,以便于后续逐步精简资源
  • 一键迁移 TRSS-Yunzai: 若无法登录QQ,可尝试 node trss 迁移,迁移后可登录其他协议端 TRSS-Yunzai

Miao-Yunzai后续计划

先刨坑,但也许会咕咕咕

  • 功能与miao-plugin部分功能进行整合或升级
    • [√] 角色卡片、抽卡分析等使用miao-plugin版本
    • miao-plugin的帮助、设置、版本信息会升至Miao-Yunzai,以支持更多场景
  • 一些底层会与miao-plugin做更深层的联动,以支持一些高级功能
    • [√] 星铁底层支持,原神&星铁多UID支持
    • 基于面板信息的uid管理及认证
    • ck切换感知等
  • 逐步实验一些新的特性
    • 更完备的plugin基础能力支持
    • 第三方 IM / Bot / WebAPI 对接或适配等

项目仅供学习交流使用,严禁用于任何商业用途和非法行为

使用方法

环境准备: Windows or Linux,Node.js( 版本至少v16以上 ), Redis

1.克隆项目并安装miao-plugin

请根据网络情况选择Github安装或Gitee安装

# 使用 Github 
git clone --depth=1 https://github.com/yoimiya-kokomi/Miao-Yunzai.git
cd Miao-Yunzai 
git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/


# 使用Gitee
git clone --depth=1 https://gitee.com/yoimiya-kokomi/Miao-Yunzai.git
cd Miao-Yunzai 
git clone --depth=1 https://gitee.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/

2.安装pnpm ,已安装的可以跳过

# 使用npmjs.org安装
npm install pnpm -g

# 指定国内源npmmirror.com安装
npm --registry=https://registry.npmmirror.com install pnpm -g

3.安装依赖

# 直接安装
pnpm install -P

# 如依赖安装缓慢或失败,可尝试更换国内npm源后再执行install命令
pnpm config set registry https://registry.npmmirror.com
pnpm install -P

4.运行(首次运行按提示输入登录)

node app

常见问题

puppeteer 相关问题

linux环境,其他环境请自行探索

    puppeteer Chromium 启动中...
    Error: Failed to launch the browser process!
  1. 先检查node版本是否大于14 (不大于14请去升级版本)
    node -v
  1. 如果大于14 则可能是缺失一些库 请安装这些 (点击代码块右上角直接复制,如果报错可以尝试 sudo)

依赖库

    yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 -y

乱码字体解决办法(centos,安装不了请换源)

    yum groupinstall fonts -y

centos7 监听事件错误 "CXXABI_1.3.8" not found 解决办法

下载 libstdc++.so.6.0.29.zip解压缩后 的文件放在/usr/lib64/中

cd /usr/lib64/
sudo mv libstdc++.so.6 libstdc++.so.6.bak
sudo ln -s libstdc++.so.6.0.29 libstdc++.so.6

致谢

Nickname Contribution
Yunzai v3.0 乐神的Yunzai-Bot V3
GardenHamster 模拟抽卡背景素材来源
西风驿站 角色攻略图来源
米游社友人A 角色突破素材图来源
icqq ICQQ

miao-yunzai's People

Contributors

1055169799 avatar 2y8e9h22 avatar afanskyqs avatar ayakurayuki avatar bangbanbab avatar batvbs avatar calmlexi avatar ctrlcvs avatar ikechan8370 avatar ikuaki1009 avatar kaguramaisakuya avatar keypj avatar liuzj288 avatar luodeb avatar lycofuture avatar nk-ava avatar qiannqq avatar rainbowwarmth avatar rrrrrrray avatar sjlei avatar smallk111407 avatar story-x avatar teriri7 avatar timerainstarsky avatar touchscale avatar ucpr251 avatar wei-la-ya avatar xfdown avatar xitiangame avatar yoimiya-kokomi avatar

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

miao-yunzai's Issues

有docker镜像吗

想把原来的yunzai换成喵喵版 之前使用docker compose部署的 喵喵版有构建好的镜像嘛

风控是不是又升级了?我号登不上了!

刚开始我还以为是号的问题,我换了一个账号还是不行,甚至我用我的大号试了试。端口试了个遍ipad/apad/mac等等都试了。密码登录扫码等也试了,扫描显示环境风险,不能登录。我梯子开关也试了下,开也好关也罢都不行。
image
我甚至换了不同手机号码的账号

更新云崽出现冲突

更新失败!存在冲突:
Error: Command failed: git pull --no-rebase
error: Your local changes to the following files would be overwritten by merge:
package.json
Please commit your changes or stash them before you merge.
Aborting

请解决冲突后再更新,或者执行#强制更新,放弃本地修改

执行#更新面板后有一定概率出现TypeError导致bot整个崩溃

今天更新之后发现bot有概率在执行#更新面板指令后死掉,看日志发现是在尝试发送“开始获取uid:${uid}的数据,可能会需要一定时间~”时发生TypeError导致进程崩掉,但不是100%发生的,貌似在一定情况下才会崩溃
日志如图所示
截屏2023-04-04 21 34 39
备注1:部分群友qq号服务器ssh端口号和连接地址等信息保证隐私已抹去
备注2:因服务器不在大陆地区,故强制bot使用enka,实测更加稳定

如何迁移

我可以从Yunzai迁移到Miao-Yunzai吗? 如果可以的话我迁移时应该保留那些文件才不会丢失用户数据

js插件无法导入

[09:47:28.038][ERRO] 载入插件错误:example/animal.js
[09:47:28.039][ERRO] /app/Miao-Yunzai/plugins/example/animal.js:5
import fetch from "node-fetch";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1176:20)
    at Module._compile (node:internal/modules/cjs/loader:1218:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[09:47:28.045][ERRO] 载入插件错误:example/muxia_duck_img.js
[09:47:28.045][ERRO] /app/Miao-Yunzai/plugins/example/muxia_duck_img.js:5
import fetch from "node-fetch";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1176:20)
    at Module._compile (node:internal/modules/cjs/loader:1218:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[09:47:28.053][ERRO] 载入插件错误:example/pixiv.js
[09:47:28.053][ERRO] /app/Miao-Yunzai/plugins/example/pixiv.js:1
import fetch from "node-fetch";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1176:20)
    at Module._compile (node:internal/modules/cjs/loader:1218:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[09:47:28.056][ERRO] 载入插件错误:example/一言.js
[09:47:28.056][ERRO] /app/Miao-Yunzai/plugins/example/一言.js:1
import plugin from '../../lib/plugins/plugin.js'
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1176:20)
    at Module._compile (node:internal/modules/cjs/loader:1218:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[09:47:28.057][ERRO] 载入插件错误:example/主动复读.js
[09:47:28.058][ERRO] /app/Miao-Yunzai/plugins/example/主动复读.js:1
import plugin from '../../lib/plugins/plugin.js'
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1176:20)
    at Module._compile (node:internal/modules/cjs/loader:1218:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

依赖puppeteer安装失败

elaine@elaine:~/Miao-Yunzai$ pnpm config set registry https://registry.npmmirror.com
pnpm install -P
Scope: all 2 workspace projects
plugins/miao-plugin |  WARN  deprecated [email protected]
plugins/miao-plugin |  WARN  deprecated [email protected]
plugins/miao-plugin |  WARN  deprecated [email protected]
 WARN  deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
Packages: +441
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
node_modules/.pnpm/[email protected]/node_modules/puppeteer: Running postinstall node_modules/.pnpm/[email protected]/node_modules/puppeteer: Running postinstall script, failed in 17.5s reused 647, downloaded 0, added 0, done
.../node_modules/puppeteer postinstall$ node install.js
└─ Failed in 17.5s at /home/elaine/Miao-Yunzai/node_modules/.pnpm/[email protected]/node_modules/puppeteer
Progress: resolved 648, reused 647, downloaded 0, added 0, done
 ELIFECYCLE  Command failed with exit code 1.
换了好几个飞机场都不行。。该怎么解决

启动报错

miao-yunzai |  ERR_PNPM_INCLUDED_DEPS_CONFLICT  modules directory (at "/app/Miao-Yunzai") was installed with optionalDependencies, dependencies. Current install wants optionalDependencies, dependencies, devDependencies.

定时任务报错:米游社公告推送任务

[12:55:00.170][ERRO] 定时任务报错:米游社公告推送任务
[12:55:00.171][ERRO] TypeError: Cannot read properties of undefined (reading 'gl')
at MysNews.sendNews (file:///C:/111/Miao-Yunzai/plugins/genshin/model/mysNews.js:326:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MysNews.mysNewsTask (file:///C:/111/Miao-Yunzai/plugins/genshin/model/mysNews.js:307:11)
at async mysNews.mysNewsTask (file:///C:/111/Miao-Yunzai/plugins/genshin/apps/mysNews.js:71:5)
at async Job.job (file:///C:/111/Miao-Yunzai/lib/plugins/loader.js:604:48)
[13:00:00.598][ERRO] 定时任务报错:米游社公告推送任务
[13:00:00.599][ERRO] TypeError: Cannot read properties of undefined (reading 'gl')
at MysNews.sendNews (file:///C:/111/Miao-Yunzai/plugins/genshin/model/mysNews.js:326:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MysNews.mysNewsTask (file:///C:/111/Miao-Yunzai/plugins/genshin/model/mysNews.js:307:11)
at async mysNews.mysNewsTask (file:///C:/111/Miao-Yunzai/plugins/genshin/apps/mysNews.js:71:5)
at async Job.job (file:///C:/111/Miao-Yunzai/lib/plugins/loader.js:604:48)

今天刚出现的,上次公告推送正常

TypeError: rendererFn is not a function

更新后使用node app都会报这个错误
[MiaoYz][11:23:31.760][ERRO] TypeError: rendererFn is not a function
at registerRendererBackends (file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:23:20)
at async file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:32:1
[MiaoYz][11:23:31.766][MARK] 监听事件错误:message.js
[MiaoYz][11:23:31.766][ERRO] TypeError: rendererFn is not a function
at registerRendererBackends (file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:23:20)
at async file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:32:1
[MiaoYz][11:23:31.768][MARK] 监听事件错误:notice.js
[MiaoYz][11:23:31.769][ERRO] TypeError: rendererFn is not a function
at registerRendererBackends (file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:23:20)
at async file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:32:1
[MiaoYz][11:23:31.773][MARK] 监听事件错误:offline.js
[MiaoYz][11:23:31.776][ERRO] TypeError: rendererFn is not a function
at registerRendererBackends (file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:23:20)
at async file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:32:1
[MiaoYz][11:23:31.778][MARK] 监听事件错误:online.js
[MiaoYz][11:23:31.778][ERRO] TypeError: rendererFn is not a function
at registerRendererBackends (file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:23:20)
at async file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:32:1
[MiaoYz][11:23:31.782][MARK] 监听事件错误:request.js
[MiaoYz][11:23:31.785][ERRO] TypeError: rendererFn is not a function
at registerRendererBackends (file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:23:20)
at async file:///home/user/Miao-Yunzai/lib/renderer/Renderer.js:32:1

跟踪后发现相关代码如下

let rendererBackends = {}

async function registerRendererBackends () {
  const subFolders = fs.readdirSync(`${process.cwd()}/renderers`, { withFileTypes: true }).filter((dirent) => dirent.isDirectory())
  for (let subFolder of subFolders) {
    let name = subFolder.name
    const rendererFn = await Data.importDefault(`/renderers/${name}/index.js`)
    let configFile = `./renderers/${name}/config.yaml`
    let rendererCfg = {}
    if (fs.existsSync(configFile)) {
      try {
        rendererCfg = yaml.parse(fs.readFileSync(configFile, 'utf8'))
      } catch (e) {
        rendererCfg = {}
      }
    }
    let renderer = rendererFn(rendererCfg) // The error is reported at this line
    if (!renderer.id || !renderer.type || !renderer.render || !lodash.isFunction(renderer.render)) {
      logger.warn('渲染后端 ' + (renderer.id || subFolder.name) + ' 不可用')
    }
    rendererBackends[renderer.id] = renderer
    logger.mark('[渲染后端加载]: 导入 ' + renderer.id)
  }

怀疑可能和renderers修改有关

puppeteer Chromium 启动失败

装py-plugin插件,然后装依赖,,会把puppeteer Chromium掉了,,导致puppeteer Chromium 启动失败。
@6V9U86PN5))VDBLQPMCU
image
具体情况就是上述图片展示

转发b站视频,分享网易云音乐这种消息,(lib/plugin/loader.js文件)e.msg是undefine,需要在e.message里面取出json数据

//有一个R插件可以解析分享的b站视频, 但是只能解析纯文本链接,不能解析b站分享到qq的小程序形式,调试后找到了原因
//这种消息,e.msg是undefine,需要在e.message里面取出json数据
lib/plugin/loader.js文件中, 240行处我做了如下修改,

//定义一个msg消息变量,默认值为e.msg
let msg = e.msg
if (e.post_type == 'message') {
if (e.message.length == 1) {
if (e.message[0].type == 'json') {
//取出json数据
msg = e.message[0].data
}
}
//在之后的代码中用msg变量替换e.msg
//还有就是好友发送的b站小程序分享能识别,在好友分享的基础上转发就不进事件循环,大佬们试试呢我不太会js

面板请求错误

服务器位置在东京,亚马逊云的,好像是无法链接到国内吧,还是服务器上的问题?不能更新面板,三个都换过了,请问如何解决

QQ消息

更新面板失败,当前面板服务enka.network,
可能是面板服务维护中,请稍后重试...

`面板请求错误 FetchError: request to https://profile.microgg.cn/api/uid/xxxx/ failed, reason: write EPROTO 140304844597184:error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1565:SSL alert number 80

at ClientRequest.<anonymous> (file:///home/ubuntu/Miao-Yunzai/node_modules/node-fetch/src/index.js:108:11)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.socketErrorListener (node:_http_client:494:9)
at TLSSocket.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {

type: 'system',
errno: 'EPROTO',
code: 'EPROTO',
erroredSysCall: 'write'`

启动报错,redis

[MiaoYz][02:32:49.517][MARK] Welcome, 1 ! 正 在 加 载 资 源 ...
[MiaoYz][02:32:54.519][MARK] 加 载 了 6个 好 友 , 3个 群 , 0个 频 道 , 0个 陌 生 人
[MiaoYz][02:32:54.520][MARK] ----^^----
[MiaoYz][02:32:54.520][MARK] Miao-Yunzai 上 线 成 功 版 本 v3.0.1
[MiaoYz][02:32:54.520][MARK] https://github.com/yoimiya-kokomi/Miao-Yunzai
[MiaoYz][02:32:54.525][INFO] 加 载 插 件 中 ..
[MiaoYz][02:32:54.529][ERRO] [ErrorReply: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.]
[MiaoYz][02:32:54.530][ERRO] [ErrorReply: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.]
[MiaoYz][02:32:54.836][INFO] ---------^
^---------
[MiaoYz][02:32:54.836][INFO] 喵 喵 插 件 2.3.6初 始 化 ~
[MiaoYz][02:32:54.877][INFO] 加 载 定 时 任 务 [1个 ]
[MiaoYz][02:32:54.877][INFO] 加 载 插 件 完 成 [15个 ]
[MiaoYz][02:32:54.877][INFO] -----------

find VS 报错

image
添加组件的时候报错,请问这个VS指的是Visual Studio吗?这个组件还需要VS来执行脚本?

上传遇到网络错误

运行环境:Docker
日志如下(相关账号信息已脱敏):

2023-03-14 19:04:34 [MiaoYz][19:04:34.853][INFO] recv from: [Private: *********(friend)] #米游社登录
2023-03-14 19:04:34 [MiaoYz][19:04:34.858][MARK] [米游社公告][mysSearch][私聊][敏感信息打码(*********)] #米游社登录
2023-03-14 19:04:36 [MiaoYz][19:04:36.376][MARK] [图片生成][mysNews][2次] 550.03kb
2023-03-14 19:04:36 [MiaoYz][19:04:36.483][MARK] [图片生成][mysNews][3次] 360.99kb
2023-03-14 19:04:36 [MiaoYz][19:04:36.486][MARK] [图片生成][mysNews] 处理完成
2023-03-14 19:04:36 [MiaoYz][19:04:36.978][WARN] 图片1上传失败, reason: 上传遇到网络错误
2023-03-14 19:04:36 [
2023-03-14 19:04:36   {
2023-03-14 19:04:36     status: 'rejected',
2023-03-14 19:04:36     reason: ApiRejection { code: -120, message: '上传遇到网络错误' }
2023-03-14 19:04:36   },
2023-03-14 19:04:36   { status: 'fulfilled', value: undefined }
2023-03-14 19:04:36 ]
2023-03-14 19:04:37 [MiaoYz][19:04:37.088][ERRO] ApiRejection { code: -120, message: '上传遇到网络错误' }
2023-03-14 19:04:37 [MiaoYz][19:04:37.088][MARK] [米游社公告][mysSearch] #米游社登录 处理完成 2228ms
2023-03-14 19:04:55 [MiaoYz][19:04:55.987][INFO] recv from: [Private: *********(friend)] #雷神面板
2023-03-14 19:04:55 [MiaoYz][19:04:55.990][MARK] [喵喵:角色面板][profileDetail][私聊][敏感信息打码(*********)] #雷神面板
2023-03-14 19:04:58 [MiaoYz][19:04:58.148][MARK] [图片生成][miao-plugin/character/profile-detail][4次] 444.64kb 2109ms
2023-03-14 19:04:58 [MiaoYz][19:04:58.316][WARN] 图片1上传失败, reason: 上传遇到网络错误
2023-03-14 19:04:58 [
2023-03-14 19:04:58   {
2023-03-14 19:04:58     status: 'rejected',
2023-03-14 19:04:58     reason: ApiRejection { code: -120, message: '上传遇到网络错误' }
2023-03-14 19:04:58   }
2023-03-14 19:04:58 ]
2023-03-14 19:04:58 [MiaoYz][19:04:58.618][INFO] succeed to send: [Private(*********)] [图片]
2023-03-14 19:04:58 [MiaoYz][19:04:58.619][MARK] [喵喵:角色面板][profileDetail] #雷神面板 处理完成 2626ms

>

          > 

改密码,退设备,关手机电脑同步在线,再改一次密码登录上去,此方法摘自同受害者的分享,目前只有MacOS和iPad协议能登录上去,此方法仅供参考,实际情况请以控制台输出结果为准,使用此方法前请先备份devices.json文件以防万一。

Originally posted by @kirin-667 in #74 (comment)

重启报错,有dalao能不能帮忙看下是哪的问题

Error: Command failed: pnpm start
[PM2][ERROR] Process 0 not found
Process 0 not found
C:\111\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\API.js:1717
acted.push(proc.pm2_env ? proc.pm2_env.pm_id : proc.pm_id)
^

TypeError: Cannot read properties of undefined (reading 'pm2_env')
at C:\111\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\API.js:1717:25
at Array.forEach ()
at API.speedList (C:\111\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\API.js:1716:18)
at C:\111\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\binaries\CLI.js:301:15
at wrapper (C:\111\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\async\internal\once.js:12:16)
at replenish (C:\111\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\async\internal\eachOfLimit.js:76:25)
at iterateeCallback (C:\111\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\async\internal\eachOfLimit.js:65:17)
at C:\111\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\async\internal\onlyOnce.js:12:16
at C:\111\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\binaries\CLI.js:292:11
at C:\111\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\API.js:330:21

Node.js v19.9.0

at ChildProcess.exithandler (node:child_process:419:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1098:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)

ERR_PNPM_INCLUDED_DEPS_CONFLICT

docker 部署
重新打包的镜像在拉取py插件和xiaoyao图鉴插件的时候都会出现这个错误

 ================ 
miao-yunzai    |  [信息]  更新 py-plugin 运行依赖  
miao-yunzai    |  ================ 
miao-yunzai    | 
miao-yunzai    |  ERR_PNPM_INCLUDED_DEPS_CONFLICT  modules directory (at "/app/Miao-Yunzai") was installed with optionalDependencies, dependencies. Current install wants optionalDependencies, dependencies, devDependencies.

尝试把docker/docker-entrypoint.sh 脚本文件中的pnpm install -P 修改为 pnpm install 未解决
在gitee上看到大佬回复
https://gitee.com/yoimiya-kokomi/Yunzai-Bot/issues/I6UYG7
疑似pnpm版本过高出现的问题

安装依赖失败,更换国内源也不管用

输出如下:

Scope: all 2 workspace projects
plugins/miao-plugin                      |  WARN  deprecated [email protected]
plugins/miao-plugin                      |  WARN  deprecated [email protected]
plugins/miao-plugin                      |  WARN  deprecated [email protected]
 WARN  deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fsPackages: +441
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
node_modules/.pnpm/[email protected]/node_modules/sqlite3: Running install script, failed in 3.7sgress: resolved 648, reused 647, downloaded 0, added 0, done
.../[email protected]/node_modules/sqlite3 install$ node-pre-gyp install --fallback-to-build
│ node-pre-gyp info it worked if it ends with ok
│ node-pre-gyp info using [email protected]
│ node-pre-gyp info using [email protected] | win32 | x64
│ node-pre-gyp info check checked for "D:\下载\Miao-Yunzai\node_modules\.pnpm\[email protected].│ node-pre-gyp http GET https://github.com/TryGhost/node-sqlite3/releases/download/v5.1.
│ node-pre-gyp ERR! install request to https://github.com/TryGhost/node-sqlite3/releases
│ node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected].
│ node-pre-gyp WARN Hit error request to https://github.com/TryGhost/node-sqlite3/releas
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | win32 | x64
│ gyp info ok
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | win32 | x64
│ gyp info find Python using Python version 3.10.10 found at "D:\Soft\Python3\python.exe
│ gyp ERR! find VS
│ gyp ERR! find VS msvs_version not set from command line or npm config
│ gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
│ gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
│ gyp ERR! find VS looking for Visual Studio 2015
│ gyp ERR! find VS - not found
│ gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
│ gyp ERR! find VS
│ gyp ERR! find VS **************************************************************
│ gyp ERR! find VS You need to install the latest version of Visual Studio
│ gyp ERR! find VS including the "Desktop development with C++" workload.
│ gyp ERR! find VS For more information consult the documentation at:
│ gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
│ gyp ERR! find VS **************************************************************
│ gyp ERR! find VS
│ gyp ERR! configure error
│ gyp ERR! stack Error: Could not find any Visual Studio installation to use
│ gyp ERR! stack     at VisualStudioFinder.fail (C:\Users\18149\AppData\Roaming\npm\node
│ gyp ERR! stack     at C:\Users\18149\AppData\Roaming\npm\node_modules\pnpm\dist\node_m
│ gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Users\18149\AppData\
│ gyp ERR! stack     at C:\Users\18149\AppData\Roaming\npm\node_modules\pnpm\dist\node_m
│ gyp ERR! stack     at C:\Users\18149\AppData\Roaming\npm\node_modules\pnpm\dist\node_m
│ gyp ERR! stack     at C:\Users\18149\AppData\Roaming\npm\node_modules\pnpm\dist\node_m
│ gyp ERR! stack     at C:\Users\18149\AppData\Roaming\npm\node_modules\pnpm\dist\node_m
│ gyp ERR! stack     at ChildProcess.exithandler (node:child_process:427:5)
│ gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
│ gyp ERR! stack     at maybeClose (node:internal/child_process:1091:16)
│ gyp ERR! System Windows_NT 10.0.22621
│ gyp ERR! command "D:\\Soft\\NodeJs\\node.exe" "C:\\Users\\18149\\AppData\\Roaming\\npm
│ gyp ERR! cwd D:\下载\Miao-Yunzai\node_modules\.pnpm\[email protected]\node_modules\sqlite3
│ gyp ERR! node -v v18.16.0
│ gyp ERR! node-gyp -v v9.3.1
│ gyp ERR! not ok
│ node-pre-gyp ERR! build error
│ node-pre-gyp ERR! stack Error: Failed to execute 'D:\Soft\NodeJs\node.exe C:\Users\181
│ node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (D:\下载\Miao-Yunzai\node_module│ node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
│ node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1091:16)
│ node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_proces
│ node-pre-gyp ERR! System Windows_NT 10.0.22621
│ node-pre-gyp ERR! command "D:\\Soft\\NodeJs\\node.exe" "D:\\下载\\Miao-Yunzai\\node_modu│ node-pre-gyp ERR! cwd D:\下载\Miao-Yunzai\node_modules\.pnpm\[email protected]\node_modules\│ node-pre-gyp ERR! node -v v18.16.0
│ node-pre-gyp ERR! node-pre-gyp -v v1.0.10
│ node-pre-gyp ERR! not ok
│ Failed to execute 'D:\Soft\NodeJs\node.exe C:\Users\18149\AppData\Roaming\npm\node_mod
└─ Failed in 3.7s at D:\下载\Miao-Yunzai\node_modules\.pnpm\[email protected]\node_modules\sqlite3
Progress: resolved 648, reused 647, downloaded 0, added 0, done
 ELIFECYCLE  Command failed with exit code 1.

建议修改“绑定ck”的帮助文档

发送“绑定ck”后,机器人会回复:“请【私聊】发送米游社cookie,获取教程:docs.qq.com/doc/DUWNVQVFTU3liTVlO”。
如果按照链接对应的腾讯文档操作,yunzai无法与获得的cookie绑定成功。

以edge浏览器为例,现在的操作是:

  1. 使用edge浏览器打开https://miyoushe.com/ys
  2. 按下“F12”
  3. 在开发者工具中,关闭断点功能,并点击继续
  4. 在网络中找到“ys”
  5. 在下面找到cookie,并复制粘贴给yunzai。

莫名其妙发图片

�[32m[MiaoYz][22:23:10.343][INFO]�[39m recv from: [Group: 11451(114), Member: x(x)] {image:4614ECEAD27F18876B270DD1103C112D}
0b46f21fbe096b63e430d2296f279f4febf8acb9.jpeg
[ { status: 'fulfilled', value: undefined } ]
�[32m[MiaoYz][22:23:11.558][INFO]�[39m succeed to send: [Group(x)] [图片]
image

请问这个能不能查看来源,感觉应该是插件干的(?)但是没显示是哪个插件又不太方便定位

#重启失败,还是老毛病

操作失败!
Error: Command failed: pnpm start
[PM2][ERROR] Process 0 not found
Process 0 not found
C:\yunzaiv3\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\API.js:1717
acted.push(proc.pm2_env ? proc.pm2_env.pm_id : proc.pm_id)
^

TypeError: Cannot read properties of undefined (reading 'pm2_env')
at C:\yunzaiv3\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\API.js:1717:25
at Array.forEach ()
at API.speedList (C:\yunzaiv3\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\API.js:1716:18)
at C:\yunzaiv3\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\binaries\CLI.js:301:15
at wrapper (C:\yunzaiv3\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\async\internal\once.js:12:16)
at replenish (C:\yunzaiv3\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\async\internal\eachOfLimit.js:76:25)
at iterateeCallback (C:\yunzaiv3\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\async\internal\eachOfLimit.js:65:17)
at C:\yunzaiv3\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\async\internal\onlyOnce.js:12:16
at C:\yunzaiv3\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\binaries\CLI.js:292:11
at C:\yunzaiv3\Miao-Yunzai\node_modules.pnpm\[email protected]\node_modules\pm2\lib\API.js:330:21

at ChildProcess.exithandler (node:child_process:400:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1093:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

疑似是pnpm版本问题

导出记录的时候经常失败

#导出记录 的时候经常失败
尝试了3个格式都差不多
成功率有点低 这个是为什么
有什么解决办法么

登录时卡在加载页面

今日更新后自动重启失败,查看是oicq版本问题,更换icqq后可以登录了,但仅有第一次登录的时候顺利进入,后面重启后再进入就一直卡在加载页面如图
微信截图_20230316055451
更换qq以及删除云崽重装均出现此情况

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.