Commit c39a2e98 authored by fredix's avatar fredix
Browse files

fix variables name

parent ca8bec4f
......@@ -8,11 +8,11 @@ import (
)
func main() {
token := os.Getenv("PLUGIN_GOTIFY_TOKEN")
endpoint := os.Getenv("PLUGIN_GOTIFY_ENDPOINT")
title := os.Getenv("PLUGIN_GOTIFY_TITLE")
message := os.Getenv("PLUGIN_GOTIFY_MESSAGE")
priority := os.Getenv("PLUGIN_GOTIFY_PRIORITY")
token := os.Getenv("PLUGIN_GOTIFYTOKEN")
endpoint := os.Getenv("PLUGIN_GOTIFYENDPOINT")
title := os.Getenv("PLUGIN_GOTIFYTITLE")
message := os.Getenv("message")
priority := os.Getenv("PLUGIN_GOTIFYPRIORITY")
resp, err := http.PostForm(endpoint + "/message?token=" + token, url.Values{"message": {message}, "title": {title}, "priority": {priority}})
if resp != nil {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment