Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Merge pull request #10 from furusax0621/fix-format
Browse files Browse the repository at this point in the history
fix message format
  • Loading branch information
furusax0621 authored Nov 22, 2023
2 parents c48a27c + d1bfabd commit 82e0600
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
Expand All @@ -30,7 +31,9 @@ func main() {
os.Exit(1)
}

body, err := json.Marshal(content{Text: string(data)})
body, err := json.Marshal(content{
Text: fmt.Sprintf("```%s```", string(data)),
})
if err != nil {
log.Printf("unknown error: %s", err.Error())
os.Exit(1)
Expand Down

0 comments on commit 82e0600

Please sign in to comment.