mirai-hello-world icon indicating copy to clipboard operation
mirai-hello-world copied to clipboard

Hello World with mirai

Results 6 mirai-hello-world issues
Sort by recently updated
recently updated
newest added

Cannot be compatible with the latest version of QQ, and the displayed version is too low.

> Task :JavaMain.main() 2021-10-11 16:58:48 I/Mirai: Mirai ����ʹ�����滷��. ��������֤�뽫�ᵯ���Ի��� KotlinMain启动 2021-10-11 17:29:09 I/Mirai: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框. 可添加 JVM 属性 `mirai.no-desktop` 以关闭.

### 问题描述 不清楚怎么把本地的设备信息移植到服务器上 [文档链接](https://github.com/mamoe/mirai/blob/dev/docs/Bots.md#设备信息) ### 详细描述 1. 我能导出`device.json` 2. 在`setDeviceInfo()`的时候不知道怎么做了 3. 有尝试去构造`DeviceInfo`,但是要塞进去好多变量,感觉很麻烦 4. 而且对上一步的`Version version`参数有个问题,导出的`device.json`文件中没有`data.version.sdk`参数,但是`Version`的构造函数中有,如下图示例 ![Version构造方法](https://user-images.githubusercontent.com/43358330/196456670-fb563e39-f470-420e-8efd-86cec1b29d23.png) ### 我尝试的代码 ```Java Bot bot = BotFactory.INSTANCE.newBot(2190915232L, "19990113+zjl", new BotConfiguration(){{ setDeviceInfo(bot1 -> { return...

Error(bot=Bot(11218664), code=235, title=温馨提示, message=当前版本过低,请升级到QQ最新版本。, errorInfo= ) 官方文档说可能原因为密码错误,经检查密码没问题,启动方式为桌面启动 #6 [test.md](https://github.com/project-mirai/mirai-hello-world/files/7385756/test.md)

在使用此过程运行后,使用项目中的Java代码 此org.example.mirai.JavaMain 调用发送消息出现乱码。 ``` Friend friend = bot.getFriend(好友QQ号); String s = new String("测试消息".getBytes("GBK"), "GBK"); String s2 = new String("测试消息".getBytes("UTF8"), "UTF8"); friend.sendMessage(s); friend.sendMessage(s2); ``` 好友接收到为: ![image](https://user-images.githubusercontent.com/54440653/130325731-d1cb1f74-d868-4a27-ad96-f3a1f79cb036.png)