now-playing: タグを追加
/ build-tool (pull_request) Has been skipped
/ build-angular (pull_request) Has been skipped
/ build-watchdog-be (pull_request) Has been skipped
/ build-docker-image (pull_request) Has been skipped

This commit is contained in:
2024-03-19 19:48:02 +09:00
parent e3ca4958a2
commit c0e7d6b590
+1 -1
View File
@@ -78,7 +78,7 @@ func main() {
before, _ := strings.CutSuffix(builder.String(), ",")
text := fmt.Sprintf("[<plain>%s</plain>](<https://open.spotify.com/track/%s>)\\n<small>%s</small>", playing.Item.Name, playing.Item.ID, before)
body := fmt.Sprintf("{ \"visibility\" : \"home\", \"text\": \"%s\\n\\n#NowPlaying\"}", text)
body := fmt.Sprintf("{ \"visibility\" : \"home\", \"text\": \"%s\\n\\n#NowPlaying #usbharu_NowPlaying \"}", text)
request, err := http.NewRequest("POST", endpoint, strings.NewReader(body))
if err != nil {