From b4e00b3d11286e4791ac8dc990937fc6c65ba12d Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 16 Sep 2021 17:21:34 -0400 Subject: [PATCH] actually load flag --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index e871771..16ff744 100644 --- a/main.go +++ b/main.go @@ -97,6 +97,8 @@ func main() { sourcePtr := flag.String("url", "https://www.dota2.com/datafeed/patchnoteslist", "url to fetch patchnotes from") patch_list := PatchList{} var current_patch Patch + + flag.Parse() LoadPatches(&patch_list, *sourcePtr) current_patch = patch_list.Patches[len(patch_list.Patches)-1] @@ -104,6 +106,8 @@ func main() { log.Printf("Starting on patch %v", current_patch.PatchNumber) if *hookPtr == "" { log.Println("No webhook set, not notifying") + } else { + log.Printf("Notifying %v", *hookPtr) } Notify(Patch{}, "")