dead-cells-wiki/qqbot/README.md

10 lines
604 B
Markdown
Raw Permalink Normal View History

2022-09-26 21:21:44 -05:00
# QQ 机器人
2022-09-29 01:29:45 -05:00
go-cqhttp 上报的数据格式:
```json
{'post_type': 'message', 'message_type': 'group', 'time': 1664423327, 'self_id': 3519964414, 'sub_type': 'normal', 'font': 0, 'message': '早上好', 'message_seq': 10221, 'sender': {'age': 0, 'area': '', 'card': '', 'level': '', 'nickname': 'EE0000', 'role': 'member', 'sex': 'unknown', 'title': '', 'user_id': 1040110848}, 'user_id': 1040110848, 'message_id': 200510966, 'anonymous': None, 'group_id': 346058845, 'raw_message': '早上好'}
```
判断 `post_type = message``message_type = group``group_id = 346058845` 进行回复