-
其实是代码上的一些疑问,如有打扰到十分抱歉
在WebSocketClient中,RecvLoop在执行到LostConnectionCallback时会被阻塞住,直到函数返回时再检测WebSocketClient::Status并退出[(WebSocketClient.cpp)](https://github.com/cyanray/mirai-cpp/blob/1974fecce64b32…
-
大佬打扰了!
**Describe the bug 出现的异常(实际行为和预期行为)**
1.
当群内被禁言或全员禁言时,尝试发送消息会导致mirai崩溃,目前使用try避免了这个问题
程序:
`Group(*GroupListCut, botid).sendMsg("已经在这里摸鱼" + to_string(intLmtDayTime) + "天了,马上就会离开这里。仍有需要的话可…
-
特殊字符需要转义,以避免处理时发生混淆。(图为QQ中发送的实际消息和go-cqhttp上报事件的解析结果)
![image](https://user-images.githubusercontent.com/13314764/89142149-367ad480-d579-11ea-972d-0d1876ea4477.png)
![image](https://user-images.gith…
-
### 问题描述
发送QQ表情商城中的表情包会直接崩溃。如图。
![QQ截图20220214150159](https://user-images.githubusercontent.com/50190343/153815525-678c418c-5a42-49dd-a129-df3b7a2075ef.png)
![Screenshot_20220214_150154_com tencent…
31207 updated
2 years ago
-
你好。我在成功与mirai-apt-http建立连接之后尝试注册监听事件,但是事件发生后,注册的回调函数并没有被执行。在mirai主程序处能看到事件,并且不需要监听的发送消息功能也能正常使用,请问这是怎么回事呢?
-
**Describe the bug 描述出现的异常(实际行为和预期行为)**
在调用e.group.quit()之后报错,如下
**Screenshots 相关代码和日志截图或复制上来**
> 2021-09-07 12:06:41 I/stdout: JSONObject["source"] not found.
> 2021-09-07 12:06:41 I/stdout: {"…
-
mirai-cpp,mirai-http-api为2.0.2
注册命令成功,执行失败。
代码用的是examples/Command.cpp
这里我打印出了content和data.dump
输出。
Active code page: 65001
Bot working...
{"alias":["hi"],"description":"指令描述描述描述","name":"hello"…
-
mirai-api-http version: 2.2.0
mirai-console version: 2.7.0
报错信息:
2021-09-04 12:37:24 E/null: A resource leak occurred, use ExternalResource.close to avoid it!! (holder=net.mamoe.mirai.internal.…
-
请问本项目是否(部分)兼容c语言?
-
My code is using `AtMe` to check whether the bot is at by other qq users. But when I updated the mirai-cpp code to the latest version, my code compiled failed because the return type has been changed …