Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrs4s committed Nov 27, 2021
1 parent 3e9920b commit bf06f50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions coolq/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,3 @@ func convertChannelFeedInfo(f *topic.Feed) global.MSG {
func fU64(v uint64) string {
return strconv.FormatUint(v, 10)
}

func sU64(v string) uint64 {
r, _ := strconv.ParseUint(v, 10, 64)
return r
}
1 change: 1 addition & 0 deletions coolq/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/Mrs4s/go-cqhttp/global"
)

// FeedContentsToArrayMessage 将话题频道帖子内容转换为 Array Message
func FeedContentsToArrayMessage(contents []topic.IFeedRichContentElement) []global.MSG {
r := make([]global.MSG, 0, len(contents))
for _, e := range contents {
Expand Down

0 comments on commit bf06f50

Please sign in to comment.