Slightly improved discord message formatting.
This commit is contained in:
parent
8495982d3f
commit
09c4561428
|
@ -88,8 +88,7 @@ func UpdateStreamers(ctx context.Context, dbConn db.ConnOrTx, streamers []hmndat
|
||||||
} else {
|
} else {
|
||||||
var builder strings.Builder
|
var builder strings.Builder
|
||||||
for _, s := range streamers {
|
for _, s := range streamers {
|
||||||
builder.WriteString(fmt.Sprintf(":green_circle: %s is live: <https://twitch.tv/%s> <t:%d:R>\n", s.Username, s.Username, s.StartTime.Unix()))
|
builder.WriteString(fmt.Sprintf(":green_circle: **%s** is live: <https://twitch.tv/%s>\n> _%s_\nStarted <t:%d:R>\n\n", s.Username, s.Username, s.Title, s.StartTime.Unix()))
|
||||||
builder.WriteString(fmt.Sprintf("> %s", s.Title))
|
|
||||||
}
|
}
|
||||||
messageContent = builder.String()
|
messageContent = builder.String()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue