@shuyuxu
如果是异常退出的话有可能会登录失效

cssxsh 发布的最佳帖子
-
协议问题汇报
请按照以下格式提交你遇到的问题
不要截图
不要截图
不要截图日志文件在 logs 文件夹,自行翻阅提取信息
不符合本贴主题 及 格式不对 或者 必要信息不足 的回复将会被删除
- mirai 版本
例如下面日志里的 2.15.0-dev-98
===============================[ Mirai console 2.15.0-dev-98 ]================================ __ __ __ __ ______ __ | \ / \ \ | \/ \ | \ | ▓▓\ / ▓▓\▓▓ ______ ______ \▓▓ ▓▓▓▓▓▓\ ______ _______ _______ ______ | ▓▓ ______ | ▓▓▓\ / ▓▓▓ \/ \ | \| \ ▓▓ \▓▓/ \| \ / \/ \| ▓▓/ \ | ▓▓▓▓\ ▓▓▓▓ ▓▓ ▓▓▓▓▓▓\ \▓▓▓▓▓▓\ ▓▓ ▓▓ | ▓▓▓▓▓▓\ ▓▓▓▓▓▓▓\ ▓▓▓▓▓▓▓ ▓▓▓▓▓▓\ ▓▓ ▓▓▓▓▓▓\ | ▓▓\▓▓ ▓▓ ▓▓ ▓▓ ▓▓ \▓▓/ ▓▓ ▓▓ ▓▓ __| ▓▓ | ▓▓ ▓▓ | ▓▓\▓▓ \| ▓▓ | ▓▓ ▓▓ ▓▓ ▓▓ | ▓▓ \▓▓▓| ▓▓ ▓▓ ▓▓ | ▓▓▓▓▓▓▓ ▓▓ ▓▓__/ \ ▓▓__/ ▓▓ ▓▓ | ▓▓_\▓▓▓▓▓▓\ ▓▓__/ ▓▓ ▓▓ ▓▓▓▓▓▓▓▓ | ▓▓ \▓ | ▓▓ ▓▓ ▓▓ \▓▓ ▓▓ ▓▓\▓▓ ▓▓\▓▓ ▓▓ ▓▓ | ▓▓ ▓▓\▓▓ ▓▓ ▓▓\▓▓ \ \▓▓ \▓▓\▓▓\▓▓ \▓▓▓▓▓▓▓\▓▓ \▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓▓ \▓▓\▓▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓▓ \▓▓▓▓▓▓▓ 2023-06-15 11:05:20 I/main: Backend: version 2.15.0-dev-98, built on 2023-06-04 07:47:48. 2023-06-15 11:05:20 I/main: Frontend Terminal: version 2.15.0-dev-98, provided by Mamoe Technologies
- 协议版本信息
例如下面日志 ,如果你没有安装 fix-protocol-version 可以不提交
2023-06-15 11:06:05 I/fix-protocol-version: 当前各协议版本日期: ANDROID_PHONE 8.9.58.11170 2023-05-19T11:35+08:00 ANDROID_PAD 8.8.88.7083 2022-03-23T11:01:55+08:00 ANDROID_WATCH 2.0.8 2019-06-03T20:25:31+08:00 IPAD 8.9.33.614 2021-12-31T11:36:26+08:00 MACOS 6.7.9 1970-01-01T08:00+08:00
-
登录方式及使用的协议
密码登录(ANDROID_PAD) / 扫码登录(ANDROID_WATCH) -
出现的问题
举例:
- 登录不上,日志为 xxxx
- 消息发不出去,消息类型为群聊/私聊
- mirai 版本
-
RE: [求助帖]更新MCL之后无法获取公告
@Anluoxuan 在 [求助帖]更新MCL之后无法获取公告 中说:
9:45:29 [INFO] iTXTech Mirai Console Loader version 2.1.0-71ec41819:45:29 [INFO] https://github.com/iTXTech/mirai-console-loader19:45:29 [INFO] This program is licensed under GNU AGPL v319:46:11 [ERROR] Failed to fetch announcement for "net.mamoe:mirai-console"19:46:20 [ERROR] Failed to fetch announcement for "net.mamoe:mirai-console-terminal"19:46:29 [ERROR] Failed to fetch announcement for "net.mamoe:mirai-core-all"19:47:20 [ERROR] Failed to fetch announcement for "org.itxtech:mcl-addon"
换源
https://mirai.mamoe.net/topic/1084/mcl-无法使用的相关解决方法-2022-3-25?_=1660982767820 -
RE: 更新mirai版本从2.12.0更新到2.12.1后报错
打开 plugins 清理掉 里面重复的 插件
mcl 2.1.1 将会按照源文件名下载 jar 包
之前的下载可能有重复,但是名字不完全一样,同时加载新旧两个包会报错
把旧的包删掉就好
-
Mirai Selenium Plugin,前置插件,用于使用Selenium调用浏览器进行截图等操作
Mirai Selenium Plugin
Mirai Selenium 前置插件
Mirai-Console的前置插件,用于使用Selenium调用浏览器进行截图等
运行平台支持
OS Browser Support Windows Chrome Yes Windows Firefox Yes Windows Edge Yes Linux Chrome Yes Linux Firefox Yes MacOS Chrome Test MacOS Firefox Test 在插件项目中引用
repositories { mavenCentral() } dependencies { compileOnly("xyz.cssxsh.mirai:mirai-selenium-plugin:${version}") }
示例代码
使用本前置插件的项目
配置
MiraiSeleniumConfig.yml
- user_agent 截图UA
- width 截图宽度
- height 截图高度
- pixel_ratio 截图像素比
- headless 无头模式(后台模式)
- proxy 代理地址
- log 启用日志文件
- browser 指定使用的浏览器:
Chrome
,Firefox
,Edge
- factory 指定使用的Factory:
ktor
,netty
安装
MCL 指令安装
./mcl --update-package xyz.cssxsh.mirai:mirai-selenium-plugin --channel stable --type plugin
手动安装
- 运行 Mirai Console 生成
plugins
文件夹 - 从 Releases 下载
jar
并将其放入plugins
文件夹中
-
RE: mcl如何升级到2.15?
首先
mcl 是 https://github.com/iTXTech/mirai-console-loader 最新版是 2.1.2
其次 mirai/mirai-console 是 https://github.com/mamoe/mirai 最新正式版是 2.14.0 最新测试版是 2.15.0-M1升级 mirai 版本可以看这个
https://mirai.mamoe.net/topic/2061另外2.15.0-M1还没有提供内置的扫码登录指令,可以看这个
https://mirai.mamoe.net/topic/2134 -
RE: Weibo Helper 一个简单的将微博转发到QQ的插件
@mous
是否有关闭mirai的行为,
如果有的话,请使用/stop
命令正常关闭
不然的话,cookie保存可能出现异常