MeetWq
MeetWq
URL: https://commons.wikimedia.org/wiki/File:Neon-logo.svg
**环境信息** go-cqhttp版本: v1.0.0-rc2 **需要添加的功能内容** 既然已经可以发送私聊合并转发消息了,也兼容了[Onebot-v11 中合并转发自定义节点的写法](https://github.com/botuniverse/onebot-11/blob/master/message/segment.md#%E5%90%88%E5%B9%B6%E8%BD%AC%E5%8F%91%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8A%82%E7%82%B9), 那是不是可以把发送合并转发消息的功能添加到`send_msg`中去? 这样可以和 OneBot-v11 保持一致
目前的需求是获取引用消息的内容,获取消息详情的 api `message/view` 的返回值是 `ChannelMessage`,该怎么将它转为 `nonebot` 中的 `Message` 呢? 适配器中有 `MessageDeserializer` 来反序列化,但它似乎是处理消息事件中的字段,和消息详情的返回值有些区别,例如: `Image` 是这么反序列化的, https://github.com/Tian-que/nonebot-adapter-kaiheila/blob/09efbee0f292361854ab0c8ed4a4b44504d52bec/nonebot/adapters/kaiheila/message.py#L343-L346 但一个 `Image` 消息 `message/view` 的结果中并没有 `“attachments”`: ``` id_='90625bd9-d961-4dac-b43b-0c004b5f367b' type=2 content='https://img.kookapp.cn/assets/2024-03/Yxv60BzCYN0hl0u0.gif' embeds=[] attachments=None ``` 和这个类似的需求是 [chatrecorder](https://github.com/noneplugin/nonebot-plugin-chatrecorder)...
@abrahum 的 [kook](https://github.com/abrahum/kook) 和 [walle-k](https://github.com/onebot-walle/walle-k) 中实现了类似的功能: https://github.com/abrahum/kook/blob/master/src/kmarkdown/mod.rs https://github.com/abrahum/kook/blob/master/src/kmarkdown/parse.rs https://github.com/onebot-walle/walle-k/blob/main/src/parse/message.rs
os: ubuntu 22.04 skia-safe version: ``` skia-safe = { version = "0.72.0", features = ["default", "textlayout"] } ``` I'm trying to set the font families in a paragraph, but it...
在 `random.choice` 之前可以设置 `seed`,如以当前日期和用户qq号作为 `seed`: ``` date = datetime.now().strftime("%Y%m%d") random.seed(f"{date}-{user_id}") ``` 这样可以保证用户当天抽到的是一样的,还可以省去判断是否抽过签以及清理抽签图片的麻烦
若某个插件因bug导致某次启动没有被加载,会导致npm记录的权限信息被清空,感觉很不友好 能否避免类似的情况? 真寻好像有个连续5次加载失败再清空插件数据的机制