Slightly improved discord message formatting.

This commit is contained in:
Asaf Gartner 2022-05-27 11:55:57 +03:00
parent 8495982d3f
commit 09c4561428
1 changed files with 1 additions and 2 deletions

View File

@ -88,8 +88,7 @@ func UpdateStreamers(ctx context.Context, dbConn db.ConnOrTx, streamers []hmndat
} else {
var builder strings.Builder
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("> %s", s.Title))
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()))
}
messageContent = builder.String()
}