From 09f6c58e8b5ee9f1cc1afd3c698658245b1ed7bb Mon Sep 17 00:00:00 2001 From: Sean Hinchee Date: Tue, 22 Jan 2019 10:18:52 -0600 Subject: [PATCH] hide timestamps by default --- helper.go | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helper.go b/helper.go index dda912af61569f536c2717a672710983e601863f..42f313096425305f1be3e5bbb6fad4edc4bb11ba 100644 --- a/helper.go +++ b/helper.go @@ -132,7 +132,7 @@ func MessagePrint(Time, Username, Content string) { content := ParseForEmoji(Content) //var Color color.Attribute log.SetFlags(0) - if *hideTimeStamp { + if ! *timeStamp { log.Printf("%s %s %s\n", Username, Config.PromptChar, content) } else { TimeStamp, _ := time.Parse(time.RFC3339, Time) diff --git a/main.go b/main.go index 6ee3731e10e0b300ccb7b9319fd007c0464c58bd..47a5b4fbd43cd99759e346d6d0aeb1311becbc76 100644 --- a/main.go +++ b/main.go @@ -36,7 +36,7 @@ var State *DiscordState.State // MsgType is a string containing global message type type MsgType string -var hideTimeStamp = flag.Bool("t", false, "Hide timestamps in channel log") +var timeStamp = flag.Bool("t", false, "Hide timestamps in channel log") var enableNotify = flag.Bool("n", false, "Enable notifications") var notifyFlag = flag.String("w", "10,10,260,90", "Dimensions to pass through to statusmsg")