Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Jul 12, 2024
1 parent 5664117 commit d563a90
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
14 changes: 0 additions & 14 deletions docs/examples/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@ qqclient.GroupMessageEvent.Subscribe(func(client *client.QQClient, event *messag

这段代码会将群聊收到的消息打印出来

:::warning 注意
bot自身发送的消息也将被作为事件处理,请开发者注意消息处理逻辑的编写,防止出现发送循环

例如,以下代码会导致无限循环发送消息

```go
qqclient.GroupMessageEvent.Subscribe(func(client *client.QQClient, event *message.GroupMessage) {
if event.ToString() == "114514" {
client.SendGroupMessage(event.GroupCode, []message.IMessageElement{NewText("114514")})
}
})
```
:::

> `QQClient`目前支持的EventHandle
| EventHandle[T] | 描述 |
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ LagrengeGo是一个NTQQ协议的sdk
- [x] 语音
- [x] 表情
- [x] At
- [ ] 回复
- [x] 回复
- [ ] 长消息(仅群聊/私聊)
- [ ] 链接分享
- [ ] 小程序(暂只支持RAW)
- [x] 小程序(暂只支持RAW)
- [ ] 短视频
- [ ] 合并转发
- [x] 合并转发
- [ ] 群文件(上传与接收信息)

**事件**
Expand Down
6 changes: 5 additions & 1 deletion docs/guide/sign.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 关于sign签名服务器

https://sign.lagrangecore.org/api/sign
主sign
> `https://sign.lagrangecore.org/api/sign`
备用sign(镜像)
> `https://sign.0w0.ing/api/sign`
该签名服务器由海外热心网友提供

0 comments on commit d563a90

Please sign in to comment.