We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2116bc8 + 809cc41 commit 0b06423Copy full SHA for 0b06423
main.go
@@ -44,9 +44,10 @@ type discordOut struct {
44
}
45
46
func main() {
47
- whURL := flag.String("webhook.url", "https://blah", "")
+ webhookUrl := os.Getenv("webhook")
48
+ whURL := flag.String("webhook.url", webhookUrl, "")
49
flag.Parse()
- http.ListenAndServe("localhost:9094", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
50
+ http.ListenAndServe(":9094", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
51
b, err := ioutil.ReadAll(r.Body)
52
if err != nil {
53
panic(err)
0 commit comments