nonebot / adapter-satori

NoneBot2 Satori 适配器 / Satori Protocol adapter for nonebot2
MIT License
84 stars 5 forks source link

satori怎么@所有人。。我好像没找到相关的实现案例 #22

Closed AhBumm closed 5 months ago

AhBumm commented 5 months ago

直接在nonebot的log里抓不到相关的信息。

[message-created]: Message 7447092827256596462 from 我...我才不是机器人(817340530)@[测试靶场:817340530]: [Text(type='text', data={'text': ' ', 'styles': {}}, _children=[])]

在cc的开发文档里推荐的postman也抓不到相关信息。

{
    "op": 0,
    "body": {
        "id": 322,
        "type": "message-created",
        "platform": "chronocat",
        "self_id": "1021009873",
        "timestamp": 1716631417000,
        "user": {
            "id": "1021009873",
            "name": "我...我才不是机器人",
            "avatar": "http://thirdqq.qlogo.cn/headimg_dl?dst_uin=1021009873&spec=640"
        },
        "channel": {
            "type": 0,
            "id": "817340530",
            "name": "测试靶场"
        },
        "guild": {
            "id": "817340530",
            "name": "测试靶场",
            "avatar": "https://p.qlogo.cn/gh/817340530/817340530/640"
        },
        "member": {},
        "message": {
            "id": "7447092827256596462",
            "content": " "
        }
    }
}
RF-Tar-Railt commented 5 months ago

你去看一眼消息段的方法啊。。。

MessageSegment.at_all

你要是不知道消息段怎么用请先去阅读nb文档

AhBumm commented 5 months ago

saa已更新feat/mention-all分支,已解决,感谢回复